From 02d860ac6331751ee62977edd9151022e714d4f0 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 9 Mar 2010 15:34:44 +0100 Subject: [PATCH] Display the same message like DIMP when browser is too old, and exclude Safari 1 too. --- kronolith/index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kronolith/index.php b/kronolith/index.php index 557fde9a0..6ca35a512 100644 --- a/kronolith/index.php +++ b/kronolith/index.php @@ -11,7 +11,11 @@ Horde_Registry::appInit('kronolith'); /* Load traditional interface? */ if (!$prefs->getValue('dynamic_view') || !$browser->hasFeature('xmlhttpreq') || - ($browser->isBrowser('msie') && $browser->getMajor() <= 6)) { + ($browser->isBrowser('msie') && $browser->getMajor() < 7) || + ($browser->hasFeature('issafari') && $browser->getMajor() < 2)) { + if ($prefs->getValue('dynamic_view')) { + $notification->push(_("Your browser is too old to display the dynamic mode. Using traditional mode instead."), 'horde.error'); + } include KRONOLITH_BASE . '/' . $prefs->getValue('defaultview') . '.php'; exit; } -- 2.11.0