]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
append LACONICA_VERSION to css files to force reload
authorEvan Prodromou <evan@controlyourself.ca>
Tue, 23 Sep 2008 06:50:21 +0000 (02:50 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Tue, 23 Sep 2008 06:50:21 +0000 (02:50 -0400)
darcs-hash:20080923065021-5ed1f-cef0ed94149b862aa4bf3b1d0189d6fb6d15aaf7.gz

lib/util.php

index edab7aad878b48e0b8cb1950bb51880dac8f7fa0..2a8fdee75e27efa0f3e14436b1e4cf49f9b7a7c7 100644 (file)
@@ -161,13 +161,13 @@ function common_show_header($pagetitle, $callable=NULL, $data=NULL, $headercall=
                                   $pagetitle . " - " . $config['site']['name']);
        common_element('link', array('rel' => 'stylesheet',
                                                                 'type' => 'text/css',
-                                                                'href' => theme_path('display.css'),
+                                                                'href' => theme_path('display.css') . '?' . LACONICA_VERSION,
                                                                 'media' => 'screen, projection, tv'));
        foreach (array(6,7) as $ver) {
                if (file_exists(theme_file('ie'.$ver.'.css'))) {
                        # Yes, IE people should be put in jail.
                        $xw->writeComment('[if lte IE '.$ver.']><link rel="stylesheet" type="text/css" '.
-                                                         'href="'.theme_path('ie'.$ver.'.css').'" /><![endif]');
+                                                         'href="'.theme_path('ie'.$ver.'.css').'?'.LACONICA_VERSION.'" /><![endif]');
                }
        }