From b4d9386a1238a7f054e51d0f8921ccd2a33bfea2 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 25 Jun 2008 11:08:31 -0400 Subject: [PATCH] Fixing an $funct issue and do not load Mail in init.php --- includes/functions.php | 2 +- includes/init.php | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 06441db..3944caf 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -770,7 +770,7 @@ function FetchUserPermissions(&$user) { $user['groupids'] = explode(',', $bugsys->userinfo['groupids']); } - $user['groupids'] = $bugsys->funct->array_strip_empty($user['groupids']); + $user['groupids'] = BSFunctions::array_strip_empty($user['groupids']); foreach ($user['groupids'] AS $group) { diff --git a/includes/init.php b/includes/init.php index 3862ebc..6ad0f8a 100755 --- a/includes/init.php +++ b/includes/init.php @@ -159,7 +159,7 @@ if (!$bugsys->options['devgettext']) } else { - $bugsys->debug("using custom MOReader instead of Gettext"); + BSApp::debug("using custom MOReader instead of Gettext"); } // ################################################################### @@ -167,13 +167,7 @@ else require_once ISSO . '/Date.php'; $datef = BSApp::$date = new BSDate(); $datef->setUserTimeZone($bugsys->userinfo['timezone'] + ($bugsys->userinfo['usedst'] * 1)); -$bugsys->debug('user tz = ' . $bugsys->userinfo['timezone'] . '; use version = ' . $datef->usertz); - -// ################################################################### -// mail system -$bugsys->load('mail', 'mail', true); -$mail->setFromAddress($bugsys->options['webmasteremail']); -$mail->setFromName(T('Bugdar Notification')); +BSApp::debug('user tz = ' . $bugsys->userinfo['timezone'] . '; use version = ' . $datef->usertz); /*=====================================================================*\ || ################################################################### -- 2.43.5