]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Rearraned stylesheet order for IE and fixed path to files for base IE stylesheets
authorSarven Capadisli <csarven@plantard.controlezvous.ca>
Sun, 1 Feb 2009 20:05:13 +0000 (20:05 +0000)
committerSarven Capadisli <csarven@plantard.controlezvous.ca>
Sun, 1 Feb 2009 20:05:13 +0000 (20:05 +0000)
lib/action.php

index 4d4c3d4c9a92a870ece3c0ff22cc3f1e4ee0e2d6..dcf98f6698d4de9d363a1aec18226e379911b275 100644 (file)
@@ -162,15 +162,15 @@ class Action extends HTMLOutputter // lawsuit
                                      'media' => 'screen, projection, tv'));
         $this->comment('[if IE]><link rel="stylesheet" type="text/css" '.
                        'href="'.theme_path('css/ie.css', 'base').'?version='.LACONICA_VERSION.'" /><![endif]');
-        $this->comment('[if IE]><link rel="stylesheet" type="text/css" '.
-                       'href="'.theme_path('css/ie.css', null).'?version='.LACONICA_VERSION.'" /><![endif]');
         foreach (array(6,7) as $ver) {
-            if (file_exists(theme_file('ie'.$ver.'.css'))) {
+            if (file_exists(theme_file('css/ie'.$ver.'.css', 'base'))) {
                 // Yes, IE people should be put in jail.
                 $this->comment('[if lte IE '.$ver.']><link rel="stylesheet" type="text/css" '.
                                'href="'.theme_path('css/ie'.$ver.'.css', 'base').'?version='.LACONICA_VERSION.'" /><![endif]');
             }
         }
+        $this->comment('[if IE]><link rel="stylesheet" type="text/css" '.
+                       'href="'.theme_path('css/ie.css', null).'?version='.LACONICA_VERSION.'" /><![endif]');
     }
 
     /**