mirror of
https://github.com/e107inc/e107.git
synced 2025-01-29 10:38:08 +01:00
API typo
This commit is contained in:
parent
c5e17a5fd9
commit
134a01f25c
10
class2.php
10
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']);
|
||||
|
@ -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];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user