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

index 32b0004d61dfcffb63e9dd6cb12eb0fe1eedc9d9..620331fba3a9128edd1e9b60d0ff565c57681e31 100644 (file)
@@ -66,7 +66,7 @@
 
        print "<schema_version>$schema_version</schema_version>";
 
-       if ($schema_version > MAX_SCHEMA_VERSION) {
+       if ($schema_version > 1) {
                $owner_uid = $_SESSION["uid"];
                print "<owner_uid>$owner_uid</owner_uid>";
        }
                                feed_id = ttrss_feeds.id $marked_qpart $unread_qpart 
                        ORDER BY ttrss_entries.id");
                                
-       } else if ($schema_version == 2) {
+       } else if ($schema_version >= 2 && $schema_version <= MAX_SCHEMA_VERSION) {
 
                $result = db_query($link, "SELECT
                                ttrss_entries.title AS title,