- removed some unneeded globals


git-svn-id: file:///svn/phpbb/trunk@6597 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2006-11-17 21:51:16 +00:00
parent ac5a12c024
commit f589ce3a84
2 changed files with 3 additions and 2 deletions

View file

@ -237,7 +237,7 @@ function gen_sort_selects(&$limit_days, &$sort_by_text, &$sort_days, &$sort_key,
*/ */
function make_jumpbox($action, $forum_id = false, $select_all = false, $acl_list = false) function make_jumpbox($action, $forum_id = false, $select_all = false, $acl_list = false)
{ {
global $config, $auth, $template, $user, $db, $phpEx; global $config, $auth, $template, $user, $db;
if (!$config['load_jumpbox']) if (!$config['load_jumpbox'])
{ {
@ -679,7 +679,7 @@ function style_select($default = '', $all = false)
*/ */
function tz_select($default = '', $truncate = false) function tz_select($default = '', $truncate = false)
{ {
global $sys_timezone, $user; global $user;
$tz_select = ''; $tz_select = '';
foreach ($user->lang['tz_zones'] as $offset => $zone) foreach ($user->lang['tz_zones'] as $offset => $zone)

View file

@ -2264,6 +2264,7 @@ function group_update_listings($group_id)
{ {
if (!function_exists('cache_moderators')) if (!function_exists('cache_moderators'))
{ {
global $phpbb_root_path, $phpEx;
include($phpbb_root_path . 'includes/functions_admin.' . $phpEx); include($phpbb_root_path . 'includes/functions_admin.' . $phpEx);
} }
cache_moderators(); cache_moderators();