mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
allow xml i/e tools use schema v4
This commit is contained in:
+3
-1
@@ -1,6 +1,8 @@
|
|||||||
<?
|
<?
|
||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
|
define('MAX_SCHEMA_VERSION', 4);
|
||||||
|
|
||||||
require_once "config.php";
|
require_once "config.php";
|
||||||
require_once "functions.php";
|
require_once "functions.php";
|
||||||
require_once "db.php";
|
require_once "db.php";
|
||||||
@@ -64,7 +66,7 @@
|
|||||||
|
|
||||||
print "<schema_version>$schema_version</schema_version>";
|
print "<schema_version>$schema_version</schema_version>";
|
||||||
|
|
||||||
if ($schema_version > 1) {
|
if ($schema_version > MAX_SCHEMA_VERSION) {
|
||||||
$owner_uid = $_SESSION["uid"];
|
$owner_uid = $_SESSION["uid"];
|
||||||
print "<owner_uid>$owner_uid</owner_uid>";
|
print "<owner_uid>$owner_uid</owner_uid>";
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -5,8 +5,8 @@
|
|||||||
require_once "functions.php";
|
require_once "functions.php";
|
||||||
require_once "db.php";
|
require_once "db.php";
|
||||||
|
|
||||||
define('MAX_SOURCE_SCHEMA_VERSION', 3);
|
define('MAX_SOURCE_SCHEMA_VERSION', 4);
|
||||||
define('TARGET_SCHEMA_VERSION', 3);
|
define('TARGET_SCHEMA_VERSION', 4);
|
||||||
|
|
||||||
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
|
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user