From: garvinhicking Date: Thu, 29 Dec 2005 12:57:31 +0000 (+0000) Subject: disregard caching when usertemplate is active X-Git-Tag: 0.9.1~6 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6b7b540c76edc1a19d0a458819efdbaa7c85ad0b;p=s9y.git disregard caching when usertemplate is active --- diff --git a/docs/NEWS b/docs/NEWS index 735072a..d091418 100644 --- 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) diff --git a/plugins/serendipity_event_templatechooser/serendipity_event_templatechooser.php b/plugins/serendipity_event_templatechooser/serendipity_event_templatechooser.php index a108476..4c786b6 100644 --- a/plugins/serendipity_event_templatechooser/serendipity_event_templatechooser.php +++ b/plugins/serendipity_event_templatechooser/serendipity_event_templatechooser.php @@ -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;