From 6f2f6d23dc3fc29b08d18132c63d4939ca425988 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sat, 20 Dec 2003 18:34:55 +0000 Subject: [PATCH] use str_replace() where possible --- phpgwapi/inc/class.setup_process.inc.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/phpgwapi/inc/class.setup_process.inc.php b/phpgwapi/inc/class.setup_process.inc.php index 28ddfb6dfb..949230131a 100644 --- a/phpgwapi/inc/class.setup_process.inc.php +++ b/phpgwapi/inc/class.setup_process.inc.php @@ -29,7 +29,7 @@ var $updateincluded = array(); var $translation; - function setup_process() + function setup_process() { $this->translation = CreateObject('phpgwapi.setup_translation'); } @@ -69,9 +69,9 @@ return False; } // Place api first - $pass['phpgwapi'] = $setup_info['phpgwapi']; - $pass['admin'] = $setup_info['admin']; - $pass['preferences'] = $setup_info['preferences']; + $pass['phpgwapi'] = $setup_info['phpgwapi']; + $pass['admin'] = $setup_info['admin']; + $pass['preferences'] = $setup_info['preferences']; @reset($setup_info); $setup_info = $GLOBALS['phpgw_setup']->detection->get_versions($setup_info); @reset($setup_info); @@ -111,7 +111,7 @@ */ } - switch ($method) + switch($method) { case 'new': /* Create tables and insert new records for each app in this list */ @@ -623,7 +623,7 @@ $currentver = $setup_info[$key]['currentver']; /* build upgrade function name */ - $function = $appname . '_upgrade' . ereg_replace("\.", '_', $value); + $function = $appname . '_upgrade' . str_replace("\.", '_', $value); if($DEBUG) {