Try to convince IE8. Guess what, it doesn't work. It neither renders as IE7
authorJan Schneider <jan@horde.org>
Fri, 27 Mar 2009 17:09:55 +0000 (18:09 +0100)
committerJan Schneider <jan@horde.org>
Mon, 30 Mar 2009 16:53:40 +0000 (18:53 +0200)
nor as IE8, but picks quirks from both modes, great.

kronolith/lib/Kronolith.php

index 931cabc..5bd2b18 100644 (file)
@@ -58,7 +58,8 @@ class Kronolith
     static private $_tagger;
 
     /**
-     * Output everything up to but not including the <body> tag.
+     * Output everything for the AJAX interface up to but not including the
+     * <body> tag.
      *
      * @param string $title   The title of the page.
      * @param array $scripts  Any additional scripts that need to be loaded.
@@ -96,6 +97,9 @@ class Kronolith
             $page_title .= ' :: ' . $title;
         }
 
+        // No IE 8 code at the moment.
+        header('X-UA-Compatible: IE=7');
+
         if (isset($GLOBALS['language'])) {
             header('Content-type: text/html; charset=' . NLS::getCharset());
             header('Vary: Accept-Language');