From 134a01f25cdd8fb28fa1f2e1f05f1f5fcffd025b Mon Sep 17 00:00:00 2001 From: secretr Date: Mon, 24 Nov 2008 20:18:59 +0000 Subject: [PATCH] API typo --- class2.php | 10 +++++----- e107_handlers/e107_class.php | 22 +++++++++++----------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/class2.php b/class2.php index d56346f67..a67ebb77d 100644 --- a/class2.php +++ b/class2.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/class2.php,v $ -| $Revision: 1.71 $ -| $Date: 2008-11-24 18:06:03 $ -| $Author: mcfly_e107 $ +| $Revision: 1.72 $ +| $Date: 2008-11-24 20:18:59 $ +| $Author: secretr $ +----------------------------------------------------------------------------+ */ // @@ -224,8 +224,8 @@ e107_require_once(e_HANDLER.'e107Url.php'); $e107->url = new eURL; e107_require_once(e_HANDLER.'e_parse_class.php'); -$tp = new e_parse; -$e107->tp = &$tp; +$e107->tp = new e_parse; +$tp = &$e107->tp; //define("e_QUERY", $matches[2]); //define("e_QUERY", $_SERVER['QUERY_STRING']); diff --git a/e107_handlers/e107_class.php b/e107_handlers/e107_class.php index 3bb7d5f1f..6b1eca0f4 100644 --- a/e107_handlers/e107_class.php +++ b/e107_handlers/e107_class.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/e107_class.php,v $ -| $Revision: 1.22 $ -| $Date: 2008-11-24 18:06:03 $ -| $Author: mcfly_e107 $ +| $Revision: 1.23 $ +| $Date: 2008-11-24 20:18:24 $ +| $Author: secretr $ +----------------------------------------------------------------------------+ */ @@ -44,12 +44,12 @@ class e107 */ function e107($e107_paths, $e107_root_path) { - if(!defsettrue('e107_php4_check')) - { - echo ('Fatal error! You are not allowed to direct instantinate an object for singleton class! Please use e107::getInstance()'); - exit(); - } - $this->_init($e107_paths, $e107_root_path); + if(defsettrue('e107_php4_check')) + { + echo ('Fatal error! You are not allowed to direct instantinate an object for singleton class! Please use e107::getInstance()'); + exit(); + } + $this->_init($e107_paths, $e107_root_path); } function _init($e107_paths, $e107_root_path) @@ -70,8 +70,8 @@ class e107 if(!$instance) { - define('e107_php4_check', true); - $instance[0] = new e107(); + $instance[0] = new e107(); + define('e107_php4_check', true); } return $instance[0]; }