]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Only load theme-specific IE stylesheets if they exist.
authorSamantha Doherty <sammy@status.net>
Thu, 22 Sep 2011 13:22:08 +0000 (09:22 -0400)
committerSamantha Doherty <sammy@status.net>
Thu, 22 Sep 2011 13:22:08 +0000 (09:22 -0400)
install.php
lib/action.php

index 190941c5abf6b33f11baf7f9329a158bf56cd61b..f44999285aeddf7758006daf60d8be808452c06f 100644 (file)
@@ -360,7 +360,7 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
         <link rel="stylesheet" type="text/css" href="theme/neo/css/display.css" media="screen, projection, tv"/>
         <!--[if IE]><link rel="stylesheet" type="text/css" href="theme/base/css/ie.css" /><![endif]-->
         <!--[if lte IE 6]><link rel="stylesheet" type="text/css" theme/base/css/ie6.css" /><![endif]-->
-        <!--[if IE]><link rel="stylesheet" type="text/css" href="theme/neo/css/ie.css" /><![endif]-->
+        <!--[if lte IE 7]><link rel="stylesheet" type="text/css" theme/base/css/ie7.css" /><![endif]-->
         <script src="js/jquery.min.js"></script>
         <script src="js/install.js"></script>
     </head>
index 9612a82b716342efc3c69050ada5f563baa0fe55..18ffb5e9206b1da4d2ee4dcab424d54f66c4e0bd 100644 (file)
@@ -241,8 +241,10 @@ class Action extends HTMLOutputter // lawsuit
                                        'href="'.Theme::path('css/ie'.$ver.'.css', 'base').'?version='.STATUSNET_VERSION.'" /><![endif]');
                     }
                 }
-                $this->comment('[if IE]><link rel="stylesheet" type="text/css" '.
+                if (file_exists(Theme::file('css/ie.css'))) {
+                    $this->comment('[if IE]><link rel="stylesheet" type="text/css" '.
                                'href="'.Theme::path('css/ie.css', null).'?version='.STATUSNET_VERSION.'" /><![endif]');
+                }
                 Event::handle('EndShowUAStyles', array($this));
             }