1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-13 11:06:20 +02:00

Minor tweaks for install

This commit is contained in:
e107steved
2008-08-10 09:17:41 +00:00
parent 6f83d506f9
commit 556eaff57d
2 changed files with 9 additions and 8 deletions

View File

@ -4,8 +4,8 @@
| e107 website system - Converter for plugin.php to plugin.xml | e107 website system - Converter for plugin.php to plugin.xml
| |
| $Source: /cvs_backup/e107_0.8/e107_files/utilities/pluginxmlgen.php,v $ | $Source: /cvs_backup/e107_0.8/e107_files/utilities/pluginxmlgen.php,v $
| $Revision: 1.1 $ | $Revision: 1.2 $
| $Date: 2008-07-01 20:49:50 $ | $Date: 2008-08-10 09:17:31 $
| $Author: e107steved $ | $Author: e107steved $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@ -96,8 +96,8 @@ define('LAN_XMLGEN_38','');
$managementOptions = array( $managementOptions = array(
'headings' => array('rowname' => ' ', 'when' => LAN_XMLGEN_30, 'type' => LAN_XMLGEN_25, 'file' => LAN_XMLGEN_28, 'class' => LAN_XMLGEN_34, 'function' => LAN_XMLGEN_29), 'headings' => array('rowname' => ' ', 'when' => LAN_XMLGEN_30, 'type' => LAN_XMLGEN_25, 'file' => LAN_XMLGEN_28, 'class' => LAN_XMLGEN_34, 'function' => LAN_XMLGEN_29),
'install' => array('rowname' => LAN_XMLGEN_17, 'when' => TRUE, 'type' => TRUE, 'file' => TRUE, 'class' => TRUE, 'function' => TRUE), 'install' => array('rowname' => LAN_XMLGEN_17, 'when' => TRUE, 'type' => TRUE, 'file' => TRUE, 'class' => TRUE, 'function' => TRUE),
'uninstall' => array('rowname' => LAN_XMLGEN_19, 'when' => FALSE, 'type' => TRUE, 'file' => TRUE, 'class' => TRUE, 'function' => TRUE), 'uninstall' => array('rowname' => LAN_XMLGEN_19, 'when' => TRUE, 'type' => TRUE, 'file' => TRUE, 'class' => TRUE, 'function' => TRUE),
'upgrade' => array('rowname' => LAN_XMLGEN_18, 'when' => FALSE, 'type' => TRUE, 'file' => TRUE, 'class' => TRUE, 'function' => TRUE), 'upgrade' => array('rowname' => LAN_XMLGEN_18, 'when' => TRUE, 'type' => TRUE, 'file' => TRUE, 'class' => TRUE, 'function' => TRUE),
'help' => array('rowname' => ' ', 'when' => ' ', 'type' => ' ', 'file' => LAN_XMLGEN_33, 'class' => LAN_XMLGEN_35, 'function' => ' ') 'help' => array('rowname' => ' ', 'when' => ' ', 'type' => ' ', 'file' => LAN_XMLGEN_33, 'class' => LAN_XMLGEN_35, 'function' => ' ')
); );

View File

@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_handlers/plugin_class.php,v $ | $Source: /cvs_backup/e107_0.8/e107_handlers/plugin_class.php,v $
| $Revision: 1.38 $ | $Revision: 1.39 $
| $Date: 2008-08-09 17:23:26 $ | $Date: 2008-08-10 09:17:41 $
| $Author: e107steved $ | $Author: e107steved $
Mods for extra plugin.xml variables Mods for extra plugin.xml variables
@ -1003,9 +1003,10 @@ class e107plugin
if(!isset($this->plug_vars['management'][$what])) { return true; } if(!isset($this->plug_vars['management'][$what])) { return true; }
$vars = $this->plug_vars['management'][$what]; $vars = $this->plug_vars['management'][$what];
if(!is_array($vars)) { $vars = array($vars); } if(!is_array($vars)) { $vars = array($vars); }
foreach($vars as $var) // foreach($vars as $var)
foreach($vars as $attrib)
{ {
$attrib = $var['@attributes']; // $attrib = $var['@attributes'];
if(isset($attrib['when']) && $attrib['when'] == $when) if(isset($attrib['when']) && $attrib['when'] == $when)
{ {
if(is_readable($path.$attrib['file'])) if(is_readable($path.$attrib['file']))