From ab64b95251efbd98c3fc02aae3d577125b288009 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 11 Nov 2006 20:55:44 +0000 Subject: [PATCH] r1283: Upgrading the initilization code to use the right setters for ISSO 2.1.x --- admin/global.php | 2 +- global.php | 7 +++---- includes/init.php | 15 +++++++-------- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/admin/global.php b/admin/global.php index c67b988..0d9949b 100755 --- a/admin/global.php +++ b/admin/global.php @@ -42,7 +42,7 @@ require_once('./includes/class_admin_navigation.php'); // continue loading $bugsys->load('printer', 'admin', true); -$admin->set('realm', _('Administration')); +$admin->setRealm(_('Administration')); $admin->setLanguageInformation($language); $admin->css_link('../framework/printer.css.php'); diff --git a/global.php b/global.php index d886bd4..7a06422 100755 --- a/global.php +++ b/global.php @@ -26,10 +26,9 @@ define('HTML_CHECKED', ' checked="checked"'); // ################################################################### // initialize template system $bugsys->load('template_fs', 'template', true); -$template->langcall = 'gettext'; -$template->set('extension', 'tpl'); -$template->set('pre_parse_hook', 'isso_pre_parse_hook'); -$template->set('templatedir', 'templates/'); +$template->setExtension('tpl'); +$template->setPreParseHook('isso_pre_parse_hook'); +$template->setTemplateDir('templates/'); // ################################################################### // global template variables diff --git a/includes/init.php b/includes/init.php index b790cc3..dcf4dca 100755 --- a/includes/init.php +++ b/includes/init.php @@ -30,9 +30,9 @@ define('ISSO_CHECK_POST_REFERER', 1); require_once('./framework/kernel.php'); $bugsys = new ISSO(); -$bugsys->set('apppath', getcwd()); -$bugsys->set('application', 'Bugdar'); -$bugsys->set('appversion', '[#]verson[#]'); +$bugsys->setAppPath(getcwd()); +$bugsys->setApplication('Bugdar'); +$bugsys->setAppVersion('[#]verson[#]'); if (!file_exists('./includes/config.php')) { @@ -42,7 +42,7 @@ if (!file_exists('./includes/config.php')) require_once('./includes/config.php'); -$bugsys->set('debug', $debug); +$bugsys->setDebug($debug); define('ISSO_DB_LAYER', 'db_mysql'); $bugsys->load('db_mysql', 'db', true); @@ -96,7 +96,7 @@ while ($store = $db->fetch_array($datastoretemp)) $bugsys->options = $bugsys->datastore['setting']; unset($bugsys->datastore['setting']); -$bugsys->set('appversion', $bugsys->options['trackerversion']); +$bugsys->setAppVersion($bugsys->options['trackerversion']); // ################################################################### // load userinfo @@ -128,7 +128,6 @@ if (!$userinfo) // ################################################################### // initialize localization system -$bugsys->load('localize', 'lang', true); require_once('./includes/language.php'); @@ -161,8 +160,8 @@ $datef->fetch_offset(); // ################################################################### // mail system $bugsys->load('mail', 'mail', true); -$mail->set('from', $bugsys->options['webmasteremail']); -$mail->set('fromname', _('Bugdar Notification')); +$mail->setFromAddress($bugsys->options['webmasteremail']); +$mail->setFromName(_('Bugdar Notification')); // ################################################################### // load permissions -- 2.43.5