diff options
Diffstat (limited to 'phpBB/includes/functions.php')
| -rw-r--r-- | phpBB/includes/functions.php | 26 | 
1 files changed, 10 insertions, 16 deletions
| diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index c88e78c91f..35fa785616 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1318,18 +1318,12 @@ function phpbb_timezone_select($user, $default = '', $truncate = false)  			$tz_dates .= '<option value="' . $timezone['offest'] . ' - ' . $timezone['current'] . '"' . $selected . '>' . $timezone['offest'] . ' - ' . $timezone['current'] . '</option>';  		} -		if (isset($user->lang['timezones'][$timezone['tz']])) +		$label = $timezone['tz']; +		if (isset($user->lang['timezones'][$label]))  		{ -			$title = $label = $user->lang['timezones'][$timezone['tz']]; -		} -		else -		{ -			// No label, we'll figure one out -			$bits = explode('/', str_replace('_', ' ', $timezone['tz'])); - -			$label = implode(' - ', $bits); -			$title = $timezone['offest'] . ' - ' . $label; +			$label = $user->lang['timezones'][$label];  		} +		$title = $timezone['offest'] . ' - ' . $label;  		if ($truncate)  		{ @@ -5596,14 +5590,14 @@ function garbage_collection()  	global $cache, $db;  	global $phpbb_dispatcher; -	/** -	* Unload some objects, to free some memory, before we finish our task -	* -	* @event core.garbage_collection -	* @since 3.1-A1 -	*/  	if (!empty($phpbb_dispatcher))  	{ +		/** +		* Unload some objects, to free some memory, before we finish our task +		* +		* @event core.garbage_collection +		* @since 3.1-A1 +		*/  		$phpbb_dispatcher->dispatch('core.garbage_collection');  	} | 
