Display the same message like DIMP when browser is too old, and exclude Safari
authorJan Schneider <jan@horde.org>
Tue, 9 Mar 2010 14:34:44 +0000 (15:34 +0100)
committerJan Schneider <jan@horde.org>
Tue, 9 Mar 2010 17:20:19 +0000 (18:20 +0100)
1 too.

kronolith/index.php

index 557fde9..6ca35a5 100644 (file)
@@ -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;
 }