Changeset 9237
- Timestamp:
- 08/12/08 08:08:18 (4 months ago)
- Files:
-
- trunk/jaws/html/include/Jaws/Gadget.php (modified) (1 diff)
- trunk/jaws/html/include/Jaws/Plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/jaws/html/include/Jaws/Gadget.php
r9236 r9237 766 766 // Applying the keys that every gadget gets 767 767 $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)); 772 771 // ACL keys 773 772 $model->InstallACLs(); trunk/jaws/html/include/Jaws/Plugin.php
r9236 r9237 184 184 } 185 185 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 { 193 189 return new Jaws_Error(_t('JMS_PLUGINS_ENABLED_FAILURE', $plugin), $plugin); 194 190 }
