From: Michael M Slusarz Date: Thu, 11 Jun 2009 08:07:25 +0000 (-0600) Subject: Remove unneeded code. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b729581bfc0903371e31347b8d277037c633e82a;p=horde.git Remove unneeded code. --- diff --git a/imp/lib/DIMP.php b/imp/lib/DIMP.php index 364bbebd7..43ef02cb9 100644 --- a/imp/lib/DIMP.php +++ b/imp/lib/DIMP.php @@ -13,11 +13,6 @@ class DIMP { /** - * Charset cache. - */ - static protected $_charset; - - /** * Output a dimp-style action (menubar) link. * * @param array $params A list of parameters. @@ -37,11 +32,8 @@ class DIMP $tooltip = (empty($params['tooltip'])) ? '' : $params['tooltip']; if (empty($params['title'])) { - if (!isset(self::$_charset)) { - self::$_charset = NLS::getCharset(); - } $old_error = error_reporting(0); - $tooltip = nl2br(htmlspecialchars($tooltip, ENT_QUOTES, self::$_charset)); + $tooltip = nl2br(htmlspecialchars($tooltip, ENT_QUOTES, NLS::getCharset())); $title = $ak = ''; } else { $title = $params['title']; diff --git a/imp/templates/index/index-dimp.inc b/imp/templates/index/index-dimp.inc index 070dbe148..74d259ede 100644 --- a/imp/templates/index/index-dimp.inc +++ b/imp/templates/index/index-dimp.inc @@ -3,10 +3,8 @@ $hordeimg = $registry->getImageDir('horde'); $usetrash = $prefs->getValue('use_trash'); -$menu_view = $prefs->getValue('menu_view'); -$show_text = ($menu_view == 'text' || $menu_view == 'both'); +$show_text = in_array($prefs->getValue('menu_view'), array('both', 'text')); $loading_text = _("Loading..."); -$is_ie6 = ($browser->isBrowser('msie') && ($browser->getMajor() < 7)); $has_blacklist = $registry->hasMethod('mail/blacklistFrom'); $has_whitelist = $registry->hasMethod('mail/whitelistFrom');