check schema version on backend calls because session stuff does it anyway and it's already cached
This commit is contained in:
parent
1bb0d9b603
commit
bf02afed45
|
@ -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"),
|
||||||
|
|
Loading…
Reference in New Issue