]> git.mjollnir.org Git - s9y.git/commitdiff
disallow caching when stylechooser is active
authorgarvinhicking <garvinhicking>
Thu, 29 Dec 2005 12:57:14 +0000 (12:57 +0000)
committergarvinhicking <garvinhicking>
Thu, 29 Dec 2005 12:57:14 +0000 (12:57 +0000)
docs/NEWS
plugins/serendipity_event_templatechooser/serendipity_event_templatechooser.php

index 067808ac4759de922404548642f912c574856c5b..467a12e022f550e0b21fbce7d6139bc33a0724c2 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -75,6 +75,10 @@ Version 1.0 ()
 Version 0.9.2 ()
 ------------------------------------------------------------------------
 
+   * Make templatechooser plugin emit a non-cached version of the
+     stylesheet, so that user-changes will be visible without manually
+     purging the cache (garvinhicking)
+
    * Fix personal configuration no more able to lock you out of all
      user groups (garvinhicking)
 
index 136b04f5b0b68ca986592d84ded25edaa05211f3..c903c3549217ca57836875297dcbaf668b58752f 100644 (file)
@@ -21,7 +21,7 @@ class serendipity_event_templatechooser extends serendipity_event
         $propbag->add('description', PLUGIN_EVENT_TEMPLATECHOOSER_DESC);
         $propbag->add('stackable',   false);
         $propbag->add('author',      'Evan Nemerson');
-        $propbag->add('version',     '1.1');
+        $propbag->add('version',     '1.2');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
@@ -57,6 +57,7 @@ class serendipity_event_templatechooser extends serendipity_event
                     $templateInfo = serendipity_fetchTemplateInfo($_SESSION['serendipityUseTemplate']);
                     $eventData['template'] = $_SESSION['serendipityUseTemplate'];
                     $eventData['template_engine'] = isset($templateInfo['engine']) ? $templateInfo['engine'] : $serendipity['defaultTemplate'];
+                    $serendipity['smarty_vars']['head_link_stylesheet'] = $serendipity['baseURL'] . 'serendipity.css.php?switch=' . $_REQUEST['user_template'];
                 }
 
                 return true;
@@ -73,4 +74,3 @@ class serendipity_event_templatechooser extends serendipity_event
 }
 
 /* vim: set sts=4 ts=4 expandtab : */
-?>