require('inc/wrapper-functions.php');
// Load more function libraries or includes
-foreach (array('request-functions', 'session-functions', 'config-functions', 'code-functions', 'inc-functions', 'filters', 'mysql-manager', 'extensions', 'db/lib', 'handler', 'hooks') as $lib) {
+foreach (array('request-functions', 'session-functions', 'config-functions', 'code-functions', 'inc-functions', 'language-functions', 'filters', 'mysql-manager', 'extensions', 'db/lib', 'handler', 'hooks') as $lib) {
// Load special functions
loadIncludeOnce('inc/' . $lib . '.php');
} // END - foreach
// Check if this file is writeable or read-only and warn the user
if ((!isInstalling()) && (isInstalled())) {
+ // Load "databases" aka static arrays
+ loadIncludeOnce('inc/databases.php');
+
+ // Init session
+ loadIncludeOnce('inc/session.php');
+
+ // Load versions
+ loadIncludeOnce('inc/versions.php');
+
// Load configuration file(s) here
loadIncludeOnce('inc/load_config.php');
// Load configuration stuff
loadConfiguration();
- // Load "databases" aka static arrays
- loadIncludeOnce('inc/databases.php');
-
- // Init session
- loadIncludeOnce('inc/session.php');
-
- // Load versions
- loadIncludeOnce('inc/versions.php');
-
// Loading patching system is required here...
loadIncludeOnce('inc/patch-system.php');
// Include neccessary functions for installation //
///////////////////////////////////////////////////
+ // This hack prevents a backtrace in CSS output
+ if ($GLOBALS['output_mode'] == '1') {
+ // Problem with config so set output mode
+ setConfigEntry('OUTPUT_MODE', 'render');
+ } // END - if
+
// Set other missing variables
if (!isset($GLOBALS['output_mode'])) $GLOBALS['output_mode'] = '0';