From 0b1fb64439e1d7cab3b4b2402bb263151b69d2d5 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 11 Dec 2005 19:55:44 +0000 Subject: [PATCH] Use method_exists() in checking for inclusion --- installer.css.php | 9 ++++++--- printer.css.php | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/installer.css.php b/installer.css.php index 9a04d43..43a6af6 100755 --- a/installer.css.php +++ b/installer.css.php @@ -21,9 +21,12 @@ if (!isset($GLOBALS['isso:null-framework'])) { - $included = false; - $path = (isset($_SERVER['SCRIPT_URL']) ? $_SERVER['SCRIPT_URL'] : $_SERVER['REQUEST_URI']); - $GLOBALS['isso:null-framework']->webpath = dirname($path) . '/'; + if (!method_exists($GLOBALS['isso:null-framework'], 'load')) + { + $included = false; + $path = (isset($_SERVER['SCRIPT_URL']) ? $_SERVER['SCRIPT_URL'] : $_SERVER['REQUEST_URI']); + $GLOBALS['isso:null-framework']->webpath = dirname($path) . '/'; + } } $css = <<webpath = dirname($path) . '/'; + if (!method_exists($GLOBALS['isso:null-framework'], 'load')) + { + $included = false; + $path = (isset($_SERVER['SCRIPT_URL']) ? $_SERVER['SCRIPT_URL'] : $_SERVER['REQUEST_URI']); + $GLOBALS['isso:null-framework']->webpath = dirname($path) . '/'; + } } $css = <<