Changeset 9237

Show
Ignore:
Timestamp:
08/12/08 08:08:18 (4 months ago)
Author:
afz
Message:

Update using registry NewKey? method in all core files

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/jaws/html/include/Jaws/Gadget.php

    r9236 r9237  
    766766            // Applying the keys that every gadget gets 
    767767            $requires = implode($req, ', '); 
    768             $GLOBALS['app']->Registry->NewKeyEx(array($enabled, 'true'), 
    769                                                 array('/gadgets/' . $gadget . '/version', $info->GetVersion()), 
    770                                                 array('/gadgets/' . $gadget . '/requires', $requires) 
    771                                                 ); 
     768            $GLOBALS['app']->Registry->NewKeyEx(array('enabled', 'true', $gadget, JAWS_REGISTRY_GADGET), 
     769                                                array('version', $info->GetVersion(), $gadget, JAWS_REGISTRY_GADGET), 
     770                                                array('requires', $requires, $gadget, JAWS_REGISTRY_GADGET)); 
    772771            // ACL keys 
    773772            $model->InstallACLs(); 
  • trunk/jaws/html/include/Jaws/Plugin.php

    r9236 r9237  
    184184        } 
    185185 
    186         $pluginkey   = '/plugins/parse_text/' . $plugin . '/enabled'; 
    187         $pluginusein = '/plugins/parse_text/' . $plugin . '/use_in'; 
    188  
    189         if ( 
    190             !$GLOBALS['app']->Registry->NewKey($pluginkey, 'true') || 
    191             !$GLOBALS['app']->Registry->NewKey($pluginusein, '*') 
    192         ) { 
     186        if (!$GLOBALS['app']->Registry->NewKey('enabled', 'true', $plugin, JAWS_REGISTRY_PLUGIN) || 
     187            !$GLOBALS['app']->Registry->NewKey('use_in', '*',  $plugin, JAWS_REGISTRY_PLUGIN)) 
     188        { 
    193189            return new Jaws_Error(_t('JMS_PLUGINS_ENABLED_FAILURE', $plugin), $plugin); 
    194190        }