From 9fd580a0c95cbb6a3e50f0c110805ff1636e4acf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 22 Dec 2008 13:05:30 +0000 Subject: [PATCH] Fixes missing variable CSS in installation phase. Resolved #15 --- inc/databases.php | 2 +- inc/mysql-connect.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/databases.php b/inc/databases.php index 50d4e691e9..ae4d2bc0f0 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -115,7 +115,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // Current SVN revision -define('CURR_SVN_REVISION', "693"); +define('CURR_SVN_REVISION', "694"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/mysql-connect.php b/inc/mysql-connect.php index efe013a278..f9f1457e4d 100644 --- a/inc/mysql-connect.php +++ b/inc/mysql-connect.php @@ -44,7 +44,7 @@ define('DEBUG_SQL', false); require_once(PATH."inc/db/lib.php"); // Non-database functions -require_once(PATH."inc/functions.php"); +require_once(PATH."inc/functions.php"); // Filter functions require_once(PATH."inc/filters.php"); @@ -257,6 +257,7 @@ if ((!isBooleanConstantAndTrue('mxchange_installing')) && (isBooleanConstantAndT /////////////////////////////////////////////////// // Set other missing variables + if (!isset($CSS)) $CSS = "0"; $link = false; // No database link by default // Include required files @@ -264,8 +265,7 @@ if ((!isBooleanConstantAndTrue('mxchange_installing')) && (isBooleanConstantAndT require_once(PATH."inc/session.php"); // Check if we are in installation routine - $installPhp = basename($_SERVER['PHP_SELF']); - if (($installPhp != "install.php") && ($CSS != "1") && ($CSS != -1)) { + if ((basename($_SERVER['PHP_SELF']) != "install.php") && ($CSS != "1") && ($CSS != -1)) { // Redirect to the installation system LOAD_URL("install.php"); } // END - if -- 2.39.5