]> git.wh0rd.org Git - tt-rss.git/commitdiff
allow xml i/e tools use schema v4
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 29 Dec 2005 18:06:23 +0000 (19:06 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 29 Dec 2005 18:06:23 +0000 (19:06 +0100)
xml-export.php
xml-import.php

index b25f50e1b8b813eabb2f525331aece78d5257472..32b0004d61dfcffb63e9dd6cb12eb0fe1eedc9d9 100644 (file)
@@ -1,6 +1,8 @@
 <?
        session_start();
 
+       define('MAX_SCHEMA_VERSION', 4);
+
        require_once "config.php";
        require_once "functions.php";
        require_once "db.php";
@@ -64,7 +66,7 @@
 
        print "<schema_version>$schema_version</schema_version>";
 
-       if ($schema_version > 1) {
+       if ($schema_version > MAX_SCHEMA_VERSION) {
                $owner_uid = $_SESSION["uid"];
                print "<owner_uid>$owner_uid</owner_uid>";
        }
index b2c9d21bf9a863878012892c85d3862206dce79f..6cae60e0d21ef12d6fd6a53013dc0162e8470888 100644 (file)
@@ -5,8 +5,8 @@
        require_once "functions.php";
        require_once "db.php";
 
-       define('MAX_SOURCE_SCHEMA_VERSION', 3);
-       define('TARGET_SCHEMA_VERSION', 3);
+       define('MAX_SOURCE_SCHEMA_VERSION', 4);
+       define('TARGET_SCHEMA_VERSION', 4);
 
        $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);