From 50fdeabf0a84a0a6e7a1c5357fe1bd1e29144bef Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 11 Dec 2005 08:28:38 +0000 Subject: [PATCH] Using a new method of checking for inclusion in CSS files... old one generated warnings --- installer.css.php | 7 +++---- printer.css.php | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/installer.css.php b/installer.css.php index 23ed004..9a04d43 100755 --- a/installer.css.php +++ b/installer.css.php @@ -19,11 +19,10 @@ || ################################################################### \*=====================================================================*/ -$included = method_exists($GLOBALS['isso:null-framework'], 'load'); - -if (!$included) +if (!isset($GLOBALS['isso:null-framework'])) { - $path = ($_SERVER['SCRIPT_URL'] ? $_SERVER['SCRIPT_URL'] : $_SERVER['REQUEST_URI']); + $included = false; + $path = (isset($_SERVER['SCRIPT_URL']) ? $_SERVER['SCRIPT_URL'] : $_SERVER['REQUEST_URI']); $GLOBALS['isso:null-framework']->webpath = dirname($path) . '/'; } diff --git a/printer.css.php b/printer.css.php index 6ad1864..f33a5b1 100755 --- a/printer.css.php +++ b/printer.css.php @@ -19,11 +19,10 @@ || ################################################################### \*=====================================================================*/ -$included = method_exists($GLOBALS['isso:null-framework'], 'load'); - -if (!$included) +if (!isset($GLOBALS['isso:null-framework'])) { - $path = ($_SERVER['SCRIPT_URL'] ? $_SERVER['SCRIPT_URL'] : $_SERVER['REQUEST_URI']); + $included = false; + $path = (isset($_SERVER['SCRIPT_URL']) ? $_SERVER['SCRIPT_URL'] : $_SERVER['REQUEST_URI']); $GLOBALS['isso:null-framework']->webpath = dirname($path) . '/'; } -- 2.22.5