summaryrefslogtreecommitdiff
path: root/include/sanity_check.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-07-10 15:24:04 +0400
committerAndrew Dolgov <[email protected]>2012-07-10 15:24:04 +0400
commit545ca067895c841e265d1bc79484235b6cf900b3 (patch)
treea6d6fe014ac872b3abb0c6bb1b976d92a241154b /include/sanity_check.php
parent383b00906cc1777a4e4339300b52700802d8885f (diff)
do not perform sanity checks on each backend request
Diffstat (limited to 'include/sanity_check.php')
-rw-r--r--include/sanity_check.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/sanity_check.php b/include/sanity_check.php
index 039a36ca0..80ca7822f 100644
--- a/include/sanity_check.php
+++ b/include/sanity_check.php
@@ -1,6 +1,4 @@
<?php
- require_once "functions.php";
-
function initial_sanity_check($link) {
$errors = array();
@@ -9,10 +7,6 @@
array_push($errors, "Configuration file not found. Looks like you forgot to copy config.php-dist to config.php and edit it.");
} else {
- define('EXPECTED_CONFIG_VERSION', 25);
- define('SCHEMA_VERSION', 92);
-
- require_once "config.php";
require_once "sanity_config.php";
if (function_exists('posix_getuid') && posix_getuid() == 0) {
@@ -20,7 +14,7 @@
}
if (CONFIG_VERSION != EXPECTED_CONFIG_VERSION) {
- $array_push($errors, "Configuration file (config.php) has incorrect version. Update it with new options from config.php-dist and set CONFIG_VERSION to the correct value.");
+ array_push($errors, "Configuration file (config.php) has incorrect version. Update it with new options from config.php-dist and set CONFIG_VERSION to the correct value.");
}
$purifier_cache_dir = CACHE_DIR . "/htmlpurifier";