1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 12:48:26 +02:00

Unable to use defsettrue, doesn't exist during install

This commit is contained in:
mcfly
2008-11-25 14:36:33 +00:00
parent 134a01f25c
commit 52e6697bae

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_handlers/e107_class.php,v $ | $Source: /cvs_backup/e107_0.8/e107_handlers/e107_class.php,v $
| $Revision: 1.23 $ | $Revision: 1.24 $
| $Date: 2008-11-24 20:18:24 $ | $Date: 2008-11-25 14:36:33 $
| $Author: secretr $ | $Author: mcfly_e107 $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@@ -44,8 +44,8 @@ class e107
*/ */
function e107($e107_paths, $e107_root_path) function e107($e107_paths, $e107_root_path)
{ {
if(defsettrue('e107_php4_check')) if(defined('e107_php4_check') && constant('e107_php4_check'))
{ {
echo ('Fatal error! You are not allowed to direct instantinate an object for singleton class! Please use e107::getInstance()'); echo ('Fatal error! You are not allowed to direct instantinate an object for singleton class! Please use e107::getInstance()');
exit(); exit();
} }