From 49f7216e19211077b305347a616cd963f27584e4 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Wed, 2 Jan 2002 15:46:17 +0000 Subject: [PATCH] Remove unused function --- setup/config.php | 1 - setup/inc/class.setup.inc.php | 43 ----------------------------------- 2 files changed, 44 deletions(-) diff --git a/setup/config.php b/setup/config.php index b240c94dc7..5512994c17 100644 --- a/setup/config.php +++ b/setup/config.php @@ -241,7 +241,6 @@ unset($t); } - //$phpgw_setup->execute_script('config',array('phpgwapi','admin','preferences')); /* ;,'preferences','email','nntp')); */ $setup_tpl->set_var('more_configs',lang('Please login to phpgroupware and run the admin application for additional site configuration') . '.'); $setup_tpl->set_var('lang_submit',lang('submit')); diff --git a/setup/inc/class.setup.inc.php b/setup/inc/class.setup.inc.php index adfd818138..5915fb09af 100644 --- a/setup/inc/class.setup.inc.php +++ b/setup/inc/class.setup.inc.php @@ -531,49 +531,6 @@ $this->db->query("DELETE FROM phpgw_hooks WHERE hook_appname='". $appname ."'"); } - /* The following function is only used by config.php */ - /*! - @function execute_script - @abstract Run scripts (form sections) per application for a particular setup screen - @param $script Name of script to run, e.g. 'config' == 'config.inc.php' - @param $order optional, set to a sorting array to run scripts in a - particular order - */ - function execute_script($script, $order = '') - { - if ($order != '' && !is_array($order)) - { - $new_order = $order; - unset($order); - $order = array($new_order); - } - if ($order == '') - { - unset($order); - $order = array(); - } - /* First include the ordered setup script file */ - @reset ($order); - while (list (,$appname) = @each($order)) - { - $f = PHPGW_SERVER_ROOT . '/' . $appname . '/setup/' . $script . '.inc.php'; - if (file_exists($f)) { include($f); } - $completed_scripts[$appname] = True; - } - /* Then add the rest */ - /* - $d = dir(PHPGW_SERVER_ROOT); - while ($entry=$d->read()) - { - if ($entry != "" && $completed_scripts[$entry] != True) - { - $f = PHPGW_SERVER_ROOT . '/' . $entry . '/setup/' . $script . '.inc.php'; - if (file_exists($f)) { include($f); } - } - } - */ - } - /*! @function alessthanb @abstract phpgw version checking, is param 1 < param 2 in phpgw versionspeak?