Use Config helper (#10339)

remove usage of global variable
This commit is contained in:
Tony Murray
2019-06-23 00:29:12 -05:00
committed by GitHub
parent 342acf50f1
commit f3ba8947f7
367 changed files with 1589 additions and 1857 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ require 'includes/init.php';
// make sure install_dir is set correctly, or the next includes will fail
if (!file_exists(Config::get('install_dir').'/config.php')) {
$suggested = realpath(__DIR__);
print_fail('$config[\'install_dir\'] is not set correctly.', "It should probably be set to: $suggested");
print_fail('\'install_dir\' config setting is not set correctly.', "It should probably be set to: $suggested");
exit;
}