1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-22 05:31:58 +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
e107_files/utilities
e107_handlers

@ -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' => ' ')
);

@ -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']))