aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-06-19 21:30:32 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-06-19 21:30:32 +0000
commit52045ff2631cdfa14efd3379b64843cafd00df8f (patch)
treec703bdc88138b7a95a3240c329b0e9e5040e53c6 /phpBB/includes/functions.php
parentcbfcf07af37e86dec6d6b8bdc1891b9524bd77ec (diff)
downloadforums-52045ff2631cdfa14efd3379b64843cafd00df8f.tar
forums-52045ff2631cdfa14efd3379b64843cafd00df8f.tar.gz
forums-52045ff2631cdfa14efd3379b64843cafd00df8f.tar.bz2
forums-52045ff2631cdfa14efd3379b64843cafd00df8f.tar.xz
forums-52045ff2631cdfa14efd3379b64843cafd00df8f.zip
some bugfixes
git-svn-id: file:///svn/phpbb/trunk@6104 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 7b36c36548..9115ac2b6a 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -429,13 +429,18 @@ function style_select($default = '', $all = false)
/**
* Pick a timezone
*/
-function tz_select($default = '')
+function tz_select($default = '', $truncate = false)
{
global $sys_timezone, $user;
$tz_select = '';
foreach ($user->lang['tz_zones'] as $offset => $zone)
{
+ if ($truncate)
+ {
+ $zone = (strlen($zone) > 70) ? substr($zone, 0, 70) . '...' : $zone;
+ }
+
if (is_numeric($offset))
{
$selected = ($offset == $default) ? ' selected="selected"' : '';