Changeset 2191


Ignore:
Timestamp:
03/08/10 15:11:05 (14 years ago)
Author:
amuller
Message:

Ticket #953 - Correção de problema nas preferences

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/functions.inc.php

    r2174 r2191  
    358358                $GLOBALS['phpgw']->preferences->verify_basic_settings(); 
    359359 
     360                /********* Optional classes, which can be disabled for performance increases *********/ 
     361                while ($phpgw_class_name = each($GLOBALS['phpgw_info']['flags'])) 
     362                { 
     363                        if (ereg('enable_',$phpgw_class_name[0])) 
     364                        { 
     365                                $enable_class = str_replace('enable_','',$phpgw_class_name[0]); 
     366                                $enable_class = str_replace('_class','',$enable_class); 
     367                                eval('$GLOBALS["phpgw"]->' . $enable_class . ' = createobject(\'phpgwapi.' . $enable_class . '\');'); 
     368                        } 
     369                } 
     370                unset($enable_class); 
     371 
     372 
    360373                reset($GLOBALS['phpgw_info']['flags']); 
    361374 
Note: See TracChangeset for help on using the changeset viewer.