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

index 735072a10b06130c888f9314dc452d1a5fda6d2c..d091418e9a6276ef9339b32a7c35cfd44f48a13b 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -3,6 +3,10 @@
 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 a1084762bfe2ea9bc70fdfbaf34fcb706d7e99a0..4c786b6f3d16e4aa919346d342243ca3b67f26fe 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;