浏览代码

Fixed note from last commit, but NOT tested, sorry not an Opera regular

pdontthink 18 年之前
父节点
当前提交
9479a2ffdb
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      functions/template.php

+ 2 - 2
functions/template.php

@@ -47,8 +47,8 @@ $xhtml_end='';
         $browser = 'msie4';
         $dom_browser = false;
         $is_IE = true;
-//FIXME: this fails for Opera because its user agent also contains MSIE
-    } elseif (stristr($browser_user_agent, "msie")) {
+    } elseif (stristr($browser_user_agent, "msie") 
+           && stristr($browser_user_agent, 'opera') === FALSE) {
         $browser = 'msie';
         $dom_browser = true;
         $is_IE = true;