phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] phpgwapi/inc functions.inc.php


From: Dave Hall
Subject: [Phpgroupware-cvs] phpgwapi/inc functions.inc.php
Date: Thu, 16 Feb 2006 04:32:27 +0000

CVSROOT:        /cvsroot/phpgwapi
Module name:    phpgwapi
Branch:         
Changes by:     Dave Hall <address@hidden>      06/02/16 04:32:27

Modified files:
        inc            : functions.inc.php 

Log message:
        remove unneeded eval

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/phpgwapi/inc/functions.inc.php.diff?tr1=1.182&tr2=1.183&r1=text&r2=text

Patches:
Index: phpgwapi/inc/functions.inc.php
diff -u phpgwapi/inc/functions.inc.php:1.182 
phpgwapi/inc/functions.inc.php:1.183
--- phpgwapi/inc/functions.inc.php:1.182        Tue Feb 14 10:01:05 2006
+++ phpgwapi/inc/functions.inc.php      Thu Feb 16 04:32:27 2006
@@ -7,7 +7,7 @@
        * @license http://www.fsf.org/licenses/lgpl.html GNU Lesser General 
Public License
        * @package phpgwapi
        * @subpackage utilities
-       * @version $Id: functions.inc.php,v 1.182 2006/02/14 10:01:05 skwashd 
Exp $
+       * @version $Id: functions.inc.php,v 1.183 2006/02/16 04:32:27 skwashd 
Exp $
        */
 
 
@@ -332,11 +332,11 @@
                /********* Optional classes, which can be disabled for 
performance increases *********/
                while ($phpgw_class_name = 
each($GLOBALS['phpgw_info']['flags']))
                {
-                       if (ereg('enable_',$phpgw_class_name[0]))
+                       if (ereg('enable_', $phpgw_class_name[0]))
                        {
-                               $enable_class = 
str_replace('enable_','',$phpgw_class_name[0]);
-                               $enable_class = 
str_replace('_class','',$enable_class);
-                               eval('$GLOBALS["phpgw"]->' . $enable_class . ' 
= createobject(\'phpgwapi.' . $enable_class . '\');');
+                               $enable_class = str_replace('enable_', '', 
$phpgw_class_name[0]);
+                               $enable_class = str_replace('_class', '', 
$enable_class);
+                               $GLOBALS['phpgw']->$enable_class = 
createobject("phpgwapi.{$enable_class}");
                        }
                }
                unset($enable_class);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]