mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-19 05:01:29 +00:00
check schema version on backend calls because session stuff does it anyway and it's already cached
This commit is contained in:
@@ -51,6 +51,11 @@
|
|||||||
UserHelper::load_user_plugins($_SESSION["uid"]);
|
UserHelper::load_user_plugins($_SESSION["uid"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Config::get_schema_version() !== SCHEMA_VERSION) {
|
||||||
|
print Errors::to_json(Errors::E_SCHEMA_MISMATCH);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$purge_intervals = array(
|
$purge_intervals = array(
|
||||||
0 => __("Use default"),
|
0 => __("Use default"),
|
||||||
-1 => __("Never purge"),
|
-1 => __("Never purge"),
|
||||||
|
|||||||
Reference in New Issue
Block a user