mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 08:35:55 +00:00
Switch to 'get_error_types()' to ensure availability in 'include/functions.php'.
The global in 'sanity_check()' was null... possibly due to circular requires?
This commit is contained in:
@@ -327,7 +327,7 @@
|
||||
|
||||
function sanity_check() {
|
||||
require_once 'errors.php';
|
||||
global $ERRORS;
|
||||
$ERRORS = get_error_types();
|
||||
|
||||
$error_code = 0;
|
||||
$schema_version = get_schema_version(true);
|
||||
@@ -540,7 +540,7 @@
|
||||
*/
|
||||
function error_json($code) {
|
||||
require_once "errors.php";
|
||||
global $ERRORS;
|
||||
$ERRORS = get_error_types();
|
||||
|
||||
@$message = $ERRORS[$code];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user