summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorwn <[email protected]>2020-12-12 09:50:43 -0600
committerwn <[email protected]>2020-12-12 10:28:48 -0600
commit6bdf4a1a25f1fc2e84fdc65e3e6a74578536f137 (patch)
treeacde2b26e99b542969198a09de654de5aebb6cd0 /include
parent08a6f6bde20055de5a08ea8afed5097783a5f164 (diff)
Switch to 'get_error_types()' to ensure availability in 'include/functions.php'.
The global in 'sanity_check()' was null... possibly due to circular requires?
Diffstat (limited to 'include')
-rw-r--r--include/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions.php b/include/functions.php
index ceb7fbd9e..2f4ee8e35 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -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];