From 556eaff57d28b6640aedd1bce9d3dd64929af67b Mon Sep 17 00:00:00 2001 From: e107steved Date: Sun, 10 Aug 2008 09:17:41 +0000 Subject: [PATCH] Minor tweaks for install --- e107_files/utilities/pluginxmlgen.php | 8 ++++---- e107_handlers/plugin_class.php | 9 +++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/e107_files/utilities/pluginxmlgen.php b/e107_files/utilities/pluginxmlgen.php index 6f0a98461..05338a04d 100644 --- a/e107_files/utilities/pluginxmlgen.php +++ b/e107_files/utilities/pluginxmlgen.php @@ -4,8 +4,8 @@ | e107 website system - Converter for plugin.php to plugin.xml | | $Source: /cvs_backup/e107_0.8/e107_files/utilities/pluginxmlgen.php,v $ -| $Revision: 1.1 $ -| $Date: 2008-07-01 20:49:50 $ +| $Revision: 1.2 $ +| $Date: 2008-08-10 09:17:31 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ @@ -96,8 +96,8 @@ define('LAN_XMLGEN_38',''); $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), '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), - 'upgrade' => array('rowname' => LAN_XMLGEN_18, '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' => TRUE, 'type' => TRUE, 'file' => TRUE, 'class' => TRUE, 'function' => TRUE), 'help' => array('rowname' => ' ', 'when' => ' ', 'type' => ' ', 'file' => LAN_XMLGEN_33, 'class' => LAN_XMLGEN_35, 'function' => ' ') ); diff --git a/e107_handlers/plugin_class.php b/e107_handlers/plugin_class.php index f33b9bddf..aac53bd65 100644 --- a/e107_handlers/plugin_class.php +++ b/e107_handlers/plugin_class.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/plugin_class.php,v $ -| $Revision: 1.38 $ -| $Date: 2008-08-09 17:23:26 $ +| $Revision: 1.39 $ +| $Date: 2008-08-10 09:17:41 $ | $Author: e107steved $ Mods for extra plugin.xml variables @@ -1003,9 +1003,10 @@ class e107plugin if(!isset($this->plug_vars['management'][$what])) { return true; } $vars = $this->plug_vars['management'][$what]; 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(is_readable($path.$attrib['file']))