From 0cdfdaa13c2e7cea8f90dac255d60bd58d57e636 Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Tue, 8 Apr 2014 10:52:48 +0200 Subject: [PATCH] Propagate $_ENV['staticpage_...'] so that it can be used in entries.tpl --- serendipity_event_cal/ChangeLog | 1 + serendipity_event_cal/serendipity_event_cal.php | 6 ++++-- serendipity_event_customarchive/ChangeLog | 1 + .../serendipity_event_customarchive.php | 6 ++++-- serendipity_event_downloadmanager/ChangeLog | 1 + .../serendipity_event_downloadmanager.php | 5 +++-- serendipity_event_externalphp/ChangeLog | 1 + .../serendipity_event_externalphp.php | 5 +++-- serendipity_event_forum/ChangeLog | 1 + serendipity_event_forum/serendipity_event_forum.php | 5 +++-- serendipity_event_guestbook/ChangeLog | 1 + .../serendipity_event_guestbook.php | 11 +++++++---- serendipity_event_staticpage/ChangeLog | 2 ++ .../serendipity_event_staticpage.php | 7 +++++-- serendipity_event_suggest/ChangeLog | 1 + .../serendipity_event_suggest.php | 5 +++-- serendipity_event_thumbnails/ChangeLog | 1 + .../serendipity_event_thumbnails.php | 3 ++- serendipity_event_usergallery/ChangeLog | 2 ++ .../serendipity_event_usergallery.php | 5 +++-- serendipity_event_userprofiles/ChangeLog | 1 + .../serendipity_event_userprofiles.php | 4 ++-- serendipity_event_wrapurl/ChangeLog | 2 ++ .../serendipity_event_wrapurl.php | 5 +++-- serendipity_plugin_pollbox/ChangeLog | 1 + .../serendipity_event_pollbox.php | 5 +++-- 26 files changed, 61 insertions(+), 27 deletions(-) create mode 100644 serendipity_event_externalphp/ChangeLog create mode 100644 serendipity_event_thumbnails/ChangeLog create mode 100644 serendipity_plugin_pollbox/ChangeLog diff --git a/serendipity_event_cal/ChangeLog b/serendipity_event_cal/ChangeLog index 256cedcb..8b6ca29a 100644 --- a/serendipity_event_cal/ChangeLog +++ b/serendipity_event_cal/ChangeLog @@ -1,6 +1,7 @@ *************************************************************************************************** * Legend: ! Bugfix, + New Features, * Changed, - Info Only * +* Propagate $smarty.env.staticpage_pagetitle (and the others) so that it can be used in entries.tpl * * v. 1.66 2011-02-23 Spartacus * =========================== diff --git a/serendipity_event_cal/serendipity_event_cal.php b/serendipity_event_cal/serendipity_event_cal.php index 67c937bf..0ff302ff 100644 --- a/serendipity_event_cal/serendipity_event_cal.php +++ b/serendipity_event_cal/serendipity_event_cal.php @@ -76,7 +76,7 @@ class serendipity_event_cal extends serendipity_event { ) ); $propbag->add('author', 'Ian (Timbalu)'); - $propbag->add('version', '1.68'); + $propbag->add('version', '1.69'); $propbag->add('groups', array('FRONTEND_FEATURES', 'BACKEND_FEATURES')); $propbag->add('requirements', array( 'serendipity' => '1.4', @@ -2198,7 +2198,9 @@ class serendipity_event_cal extends serendipity_event { /* templates detection that this is not a regular entry view and avoid processing entries.tpl, which will obviously contain serendipity_Entry_Date, etc. */ - $serendipity['smarty']->assign('staticpage_pagetitle', preg_replace('@[^a-z0-9]@i', '_', $this->get_config('pagetitle'))); + $pt = preg_replace('@[^a-z0-9]@i', '_', $this->get_config('pagetitle')); + $serendipity['smarty']->assign('staticpage_pagetitle', $pt); + $_ENV['staticpage_pagetitle'] = $pt; if ($this->get_config('articleformat') == true) { $serendipity['smarty']->assign('is_eventcal_articleformat', true); diff --git a/serendipity_event_customarchive/ChangeLog b/serendipity_event_customarchive/ChangeLog index cfd43344..db66159c 100644 --- a/serendipity_event_customarchive/ChangeLog +++ b/serendipity_event_customarchive/ChangeLog @@ -1,3 +1,4 @@ +Propagate $smarty.env.staticpage_pagetitle (and the others) so that it can be used in entries.tpl latest: Smarty3 forward compatibility 1.11: diff --git a/serendipity_event_customarchive/serendipity_event_customarchive.php b/serendipity_event_customarchive/serendipity_event_customarchive.php index 6ed0a863..0423b504 100644 --- a/serendipity_event_customarchive/serendipity_event_customarchive.php +++ b/serendipity_event_customarchive/serendipity_event_customarchive.php @@ -94,7 +94,7 @@ class serendipity_event_customarchive extends serendipity_event { $propbag->add('event_hooks', array('entries_header' => true, 'entry_display' => true, 'genpage' => true)); $propbag->add('configuration', array('permalink', 'pagetitle', 'articleformat')); $propbag->add('author', 'Garvin Hicking'); - $propbag->add('version', '1.11'); + $propbag->add('version', '1.12'); $propbag->add('requirements', array( 'serendipity' => '0.8', 'smarty' => '2.6.7', @@ -259,7 +259,9 @@ class serendipity_event_customarchive extends serendipity_event { if (!is_object($serendipity['smarty'])) { serendipity_smarty_init(); } - $serendipity['smarty']->assign('staticpage_pagetitle', preg_replace('@[^a-z0-9]@i', '_',$this->get_config('pagetitle'))); + $pt = preg_replace('@[^a-z0-9]@i', '_',$this->get_config('pagetitle')); + $_ENV['staticpage_pagetitle'] = $pt; + $serendipity['smarty']->assign('staticpage_pagetitle', $pt); if ($this->get_config('articleformat') == TRUE) { diff --git a/serendipity_event_downloadmanager/ChangeLog b/serendipity_event_downloadmanager/ChangeLog index d56c7d67..29d5ec66 100644 --- a/serendipity_event_downloadmanager/ChangeLog +++ b/serendipity_event_downloadmanager/ChangeLog @@ -1,6 +1,7 @@ ChangeLog: """""""""" +Propagate $smarty.env.staticpage_pagetitle (and the others) so that it can be used in entries.tpl latest: Smarty3 forward compatibility [Version 0.26 2011/02/15] by Ian (Timbalu) diff --git a/serendipity_event_downloadmanager/serendipity_event_downloadmanager.php b/serendipity_event_downloadmanager/serendipity_event_downloadmanager.php index bb03782c..cb81b5de 100755 --- a/serendipity_event_downloadmanager/serendipity_event_downloadmanager.php +++ b/serendipity_event_downloadmanager/serendipity_event_downloadmanager.php @@ -50,7 +50,7 @@ class serendipity_event_downloadmanager extends serendipity_event { 'php' => '5.0.0' )); - $propbag->add('version', '0.29'); + $propbag->add('version', '0.30'); $propbag->add('author', 'Alexander \'dma147\' Mieland, Grischa Brockhaus, Ian (Timbalu)'); $propbag->add('stackable', false); $propbag->add('event_hooks', array( @@ -322,7 +322,8 @@ class serendipity_event_downloadmanager extends serendipity_event { } serendipity_smarty_init(); - $serendipity['smarty']->assign('staticpage_pagetitle', preg_replace('@[^a-z0-9]@i', '_',$this->get_config('pagetitle'))); + $_ENV['staticpage_pagetitle'] = preg_replace('@[^a-z0-9]@i', '_',$this->get_config('pagetitle')); + $serendipity['smarty']->assign('staticpage_pagetitle', $_ENV['staticpage_pagetitle']); $this->showShoutPage(); } } diff --git a/serendipity_event_externalphp/ChangeLog b/serendipity_event_externalphp/ChangeLog new file mode 100644 index 00000000..d328cb57 --- /dev/null +++ b/serendipity_event_externalphp/ChangeLog @@ -0,0 +1 @@ +Propagate $smarty.env.staticpage_pagetitle (and the others) so that it can be used in entries.tpl \ No newline at end of file diff --git a/serendipity_event_externalphp/serendipity_event_externalphp.php b/serendipity_event_externalphp/serendipity_event_externalphp.php index 83661fe8..bd194afd 100644 --- a/serendipity_event_externalphp/serendipity_event_externalphp.php +++ b/serendipity_event_externalphp/serendipity_event_externalphp.php @@ -23,7 +23,7 @@ class serendipity_event_externalphp extends serendipity_event { $propbag->add('event_hooks', array('entries_header' => true, 'entry_display' => true, 'genpage' => true)); $propbag->add('configuration', array('permalink', 'pagetitle', 'include', 'articleformat')); $propbag->add('author', 'Garvin Hicking'); - $propbag->add('version', '1.3'); + $propbag->add('version', '1.4'); $propbag->add('requirements', array( 'serendipity' => '0.7', 'smarty' => '2.6.7', @@ -91,7 +91,8 @@ class serendipity_event_externalphp extends serendipity_event { if (!is_object($serendipity['smarty'])) { serendipity_smarty_init(); } - $serendipity['smarty']->assign('staticpage_pagetitle', preg_replace('@[^a-z0-9]@i', '_',$this->get_config('pagetitle'))); + $_ENV['staticpage_pagetitle'] = preg_replace('@[^a-z0-9]@i', '_',$this->get_config('pagetitle')); + $serendipity['smarty']->assign('staticpage_pagetitle', $_ENV['staticpage_pagetitle']); if ($this->get_config('articleformat') == TRUE) { diff --git a/serendipity_event_forum/ChangeLog b/serendipity_event_forum/ChangeLog index d1097a0b..0d2af53c 100644 --- a/serendipity_event_forum/ChangeLog +++ b/serendipity_event_forum/ChangeLog @@ -1,3 +1,4 @@ +Propagate $smarty.env.staticpage_pagetitle (and the others) so that it can be used in entries.tpl latest: Smarty3 forward compatibility 0.40: diff --git a/serendipity_event_forum/serendipity_event_forum.php b/serendipity_event_forum/serendipity_event_forum.php index 3c11cbed..a60ee722 100644 --- a/serendipity_event_forum/serendipity_event_forum.php +++ b/serendipity_event_forum/serendipity_event_forum.php @@ -53,7 +53,7 @@ class serendipity_event_forum extends serendipity_event { 'php' => '4.1.0' )); - $propbag->add('version', '0.37'); + $propbag->add('version', '0.38'); $propbag->add('author', 'Alexander \'dma147\' Mieland, http://blog.linux-stats.org, dma147@linux-stats.org'); $propbag->add('stackable', false); $propbag->add('event_hooks', array( @@ -356,7 +356,8 @@ class serendipity_event_forum extends serendipity_event { if (!is_object($serendipity['smarty'])) { serendipity_smarty_init(); } - $serendipity['smarty']->assign('staticpage_pagetitle', preg_replace('@[^a-z0-9]@i', '_',$this->get_config('pagetitle'))); + $_ENV['staticpage_pagetitle'] = preg_replace('@[^a-z0-9]@i', '_',$this->get_config('pagetitle')); + $serendipity['smarty']->assign('staticpage_pagetitle', $_ENV['staticpage_pagetitle']); $this->showForum(); } } diff --git a/serendipity_event_guestbook/ChangeLog b/serendipity_event_guestbook/ChangeLog index f3121831..830dd56f 100644 --- a/serendipity_event_guestbook/ChangeLog +++ b/serendipity_event_guestbook/ChangeLog @@ -1,3 +1,4 @@ +3.44: Propagate $smarty.env.staticpage_pagetitle (and the others) so that it can be used in entries.tpl 3.43: Properly use the example() API method by returning, not echo'ing. Unimportant update. 3.42: diff --git a/serendipity_event_guestbook/serendipity_event_guestbook.php b/serendipity_event_guestbook/serendipity_event_guestbook.php index a46e8eb3..65b83124 100644 --- a/serendipity_event_guestbook/serendipity_event_guestbook.php +++ b/serendipity_event_guestbook/serendipity_event_guestbook.php @@ -66,7 +66,7 @@ class serendipity_event_guestbook extends serendipity_event { 'dateformat' )); $propbag->add('author', 'Ian'); - $propbag->add('version', '3.43'); + $propbag->add('version', '3.44'); $propbag->add('requirements', array( 'serendipity' => '1.3', 'smarty' => '2.6.7', @@ -1003,11 +1003,14 @@ class serendipity_event_guestbook extends serendipity_event { } // Carl wanted the staticpage_pagetitle - see s9y-1.1 new hemingway theme index.tpl {$staticpage_pagetitle} + $_ENV['staticpage_pagetitle'] = preg_replace('@[^a-z0-9]@i', '_',$this->get_config('pagetitle')); + $_ENV['staticpage_headline'] = $this->get_config('headline'); + $_ENV['staticpage_formorder'] = $this->get_config('formorder'); $serendipity['smarty']->assign( array( - 'staticpage_headline' => $this->get_config('headline'), - 'staticpage_pagetitle' => preg_replace('@[^a-z0-9]@i', '_',$this->get_config('pagetitle')), - 'staticpage_formorder' => $this->get_config('formorder') + 'staticpage_headline' => $_ENV['staticpage_headline'], + 'staticpage_pagetitle' => $_ENV['staticpage_pagetitle'], + 'staticpage_formorder' => $_ENV['staticpage_formorder'] ) ); diff --git a/serendipity_event_staticpage/ChangeLog b/serendipity_event_staticpage/ChangeLog index 2317ceb9..87233d2d 100644 --- a/serendipity_event_staticpage/ChangeLog +++ b/serendipity_event_staticpage/ChangeLog @@ -1,3 +1,5 @@ +4.07 Propagate $smarty.env.staticpage_pagetitle (and the others) so that it can be used in entries.tpl + 4.06 Serendipity 2.0 compatibility fix for the editorbuttons (wysiwyg and default) 4.05 Bump version to propagate changed plugin_staticpage_related_category.tpl diff --git a/serendipity_event_staticpage/serendipity_event_staticpage.php b/serendipity_event_staticpage/serendipity_event_staticpage.php index 993eb969..613b8190 100644 --- a/serendipity_event_staticpage/serendipity_event_staticpage.php +++ b/serendipity_event_staticpage/serendipity_event_staticpage.php @@ -92,7 +92,7 @@ class serendipity_event_staticpage extends serendipity_event $propbag->add('page_configuration', $this->config); $propbag->add('type_configuration', $this->config_types); $propbag->add('author', 'Marco Rinck, Garvin Hicking, David Rolston, Falk Doering, Stephan Manske, Pascal Uhlmann, Ian, Don Chambers'); - $propbag->add('version', '4.06'); + $propbag->add('version', '4.07'); $propbag->add('requirements', array( 'serendipity' => '1.3', 'smarty' => '2.6.7', @@ -1151,7 +1151,10 @@ class serendipity_event_staticpage extends serendipity_event serendipity_smarty_init(); foreach($this->config as $staticpage_config) { - $serendipity['smarty']->assign($pagevar . $staticpage_config, $this->get_static($staticpage_config)); + $cvar = $this->get_static($staticpage_config); + $serendipity['smarty']->assign($pagevar . $staticpage_config, $cvar); + // This is a global variable assignment, so that within entries.tpl you can acces $smarty.env.staticpage_pagetitle. Otherwise, $staticpage_pagetitle would only be available to index.tpl and content.tpl + $_ENV[$pagevar . $staticpage_config] = $cvar; } if (serendipity_db_bool($this->get_static('markup'))) { diff --git a/serendipity_event_suggest/ChangeLog b/serendipity_event_suggest/ChangeLog index 8fd1ad20..95732d76 100644 --- a/serendipity_event_suggest/ChangeLog +++ b/serendipity_event_suggest/ChangeLog @@ -1,3 +1,4 @@ +Propagate $smarty.env.staticpage_pagetitle (and the others) so that it can be used in entries.tpl latest: Smarty3 forward compatibility 0.10: diff --git a/serendipity_event_suggest/serendipity_event_suggest.php b/serendipity_event_suggest/serendipity_event_suggest.php index 15b3440f..6aeb7220 100644 --- a/serendipity_event_suggest/serendipity_event_suggest.php +++ b/serendipity_event_suggest/serendipity_event_suggest.php @@ -31,7 +31,7 @@ class serendipity_event_suggest extends serendipity_event { )); $propbag->add('configuration', array('permalink', 'pagetitle', 'authorid', 'email')); $propbag->add('author', 'Garvin Hicking'); - $propbag->add('version', '0.10'); + $propbag->add('version', '0.11'); $propbag->add('groups', array('FRONTEND_FEATURES')); $propbag->add('requirements', array( 'serendipity' => '0.9', @@ -224,7 +224,8 @@ class serendipity_event_suggest extends serendipity_event { serendipity_smarty_init(); } - $serendipity['smarty']->assign('staticpage_pagetitle', preg_replace('@[^a-z0-9]@i', '_',$this->get_config('pagetitle'))); + $_ENV['staticpage_pagetitle'] = preg_replace('@[^a-z0-9]@i', '_',$this->get_config('pagetitle')); + $serendipity['smarty']->assign('staticpage_pagetitle', $_ENV['staticpage_pagetitle']); $this->checkSubmit(); diff --git a/serendipity_event_thumbnails/ChangeLog b/serendipity_event_thumbnails/ChangeLog new file mode 100644 index 00000000..d328cb57 --- /dev/null +++ b/serendipity_event_thumbnails/ChangeLog @@ -0,0 +1 @@ +Propagate $smarty.env.staticpage_pagetitle (and the others) so that it can be used in entries.tpl \ No newline at end of file diff --git a/serendipity_event_thumbnails/serendipity_event_thumbnails.php b/serendipity_event_thumbnails/serendipity_event_thumbnails.php index 13a6a7d0..bf24f6c9 100644 --- a/serendipity_event_thumbnails/serendipity_event_thumbnails.php +++ b/serendipity_event_thumbnails/serendipity_event_thumbnails.php @@ -25,7 +25,7 @@ class serendipity_event_thumbnails extends serendipity_event { $propbag->add('configuration', array('number')); $propbag->add('stackable', false); $propbag->add('author', 'Cameron MacFarland'); - $propbag->add('version', '1.3'); + $propbag->add('version', '1.4'); $propbag->add('requirements', array( 'serendipity' => '0.7', 'smarty' => '2.6.7', @@ -71,6 +71,7 @@ class serendipity_event_thumbnails extends serendipity_event { if (!is_object($serendipity['smarty'])) { serendipity_smarty_init(); } + $_ENV['staticpage_pagetitle'] = 'thumbs'; $serendipity['smarty']->assign('staticpage_pagetitle', 'thumbs'); $this->generate_content($title); } diff --git a/serendipity_event_usergallery/ChangeLog b/serendipity_event_usergallery/ChangeLog index d9959ebe..c798c00f 100644 --- a/serendipity_event_usergallery/ChangeLog +++ b/serendipity_event_usergallery/ChangeLog @@ -1,3 +1,5 @@ +Propagate $smarty.env.staticpage_pagetitle (and the others) so that it can be used in entries.tpl + 2.55: ----- Template and translation improvements diff --git a/serendipity_event_usergallery/serendipity_event_usergallery.php b/serendipity_event_usergallery/serendipity_event_usergallery.php index e852856f..a761c2de 100644 --- a/serendipity_event_usergallery/serendipity_event_usergallery.php +++ b/serendipity_event_usergallery/serendipity_event_usergallery.php @@ -24,7 +24,7 @@ class serendipity_event_usergallery extends serendipity_event $propbag->add('description', PLUGIN_EVENT_USERGALLERY_DESC); $propbag->add('stackable', true); $propbag->add('author', 'Arnan de Gans, Matthew Groeninger, and Stefan Willoughby'); - $propbag->add('version', '2.56'); + $propbag->add('version', '2.57'); $propbag->add('requirements', array( 'serendipity' => '0.8', 'smarty' => '2.6.7', @@ -488,7 +488,8 @@ class serendipity_event_usergallery extends serendipity_event return; } - $serendipity['smarty']->assign('staticpage_pagetitle', preg_replace('@[^a-z0-9]@i', '_',$this->get_config('base_directory'))); + $_ENV['staticpage_pagetitle'] = preg_replace('@[^a-z0-9]@i', '_',$this->get_config('base_directory')); + $serendipity['smarty']->assign('staticpage_pagetitle', $_ENV['staticpage_pagetitle']); $serendipity['smarty']->assign('const', array('filesize' => PLUGIN_EVENT_USERGALLERY_FILESIZE, 'filename' => PLUGIN_EVENT_USERGALLERY_FILENAME, 'dimension' => PLUGIN_EVENT_USERGALLERY_DIMENSION, diff --git a/serendipity_event_userprofiles/ChangeLog b/serendipity_event_userprofiles/ChangeLog index 24232204..2cb7968e 100644 --- a/serendipity_event_userprofiles/ChangeLog +++ b/serendipity_event_userprofiles/ChangeLog @@ -1,3 +1,4 @@ +Propagate $smarty.env.staticpage_pagetitle (and the others) so that it can be used in entries.tpl latest: Smarty3 forward compatibility 0.26: diff --git a/serendipity_event_userprofiles/serendipity_event_userprofiles.php b/serendipity_event_userprofiles/serendipity_event_userprofiles.php index aa3f3089..9b86b38f 100755 --- a/serendipity_event_userprofiles/serendipity_event_userprofiles.php +++ b/serendipity_event_userprofiles/serendipity_event_userprofiles.php @@ -96,7 +96,7 @@ class serendipity_event_userprofiles extends serendipity_event { 'genpage' => true )); $propbag->add('author', 'Garvin Hicking, Falk Doering'); - $propbag->add('version', '0.27'); + $propbag->add('version', '0.28'); $propbag->add('requirements', array( 'serendipity' => '0.8', 'smarty' => '2.6.7', @@ -291,7 +291,7 @@ class serendipity_event_userprofiles extends serendipity_event { if ('USERLEVEL_' == substr($group['name'], 0, 10)) { $group['name'] = constant($group['name']); } - + $_ENV['staticpage_pagetitle'] = 'userprofiles'; $serendipity['smarty']->assign(array( 'staticpage_pagetitle' => 'userprofiles', 'userprofile_groups' => serendipity_getAllGroups(), diff --git a/serendipity_event_wrapurl/ChangeLog b/serendipity_event_wrapurl/ChangeLog index 5a7a270e..9b4f524c 100644 --- a/serendipity_event_wrapurl/ChangeLog +++ b/serendipity_event_wrapurl/ChangeLog @@ -1,6 +1,8 @@ ChangeLog: serendipity_event_wrapurl Plugin """""""""" +Propagate $smarty.env.staticpage_pagetitle (and the others) so that it can be used in entries.tpl + [Version 0.9 2011/08/13] by Ian (Timbalu) - changed css output to support newline breaks in serendipity.css (more a cosmetic change) diff --git a/serendipity_event_wrapurl/serendipity_event_wrapurl.php b/serendipity_event_wrapurl/serendipity_event_wrapurl.php index 690f6149..89015d85 100644 --- a/serendipity_event_wrapurl/serendipity_event_wrapurl.php +++ b/serendipity_event_wrapurl/serendipity_event_wrapurl.php @@ -27,7 +27,7 @@ class serendipity_event_wrapURL extends serendipity_event { $propbag->add('event_hooks', array('entries_header' => true, 'entry_display' => true, 'genpage' => true, 'frontend_generate_plugins' => true, 'css' => true)); $propbag->add('configuration', array('headline', 'permalink', 'pagetitle', 'wrapurl', 'height', 'wrapurl_append', 'hide_sidebar')); $propbag->add('author', 'Rob Antonishen, Ian (Timbalu)'); - $propbag->add('version', '0.9'); + $propbag->add('version', '0.10'); $propbag->add('requirements', array( 'serendipity' => '0.7', 'smarty' => '2.6.7', @@ -130,7 +130,8 @@ class serendipity_event_wrapURL extends serendipity_event { } } - $serendipity['smarty']->assign('staticpage_pagetitle', preg_replace('@[^a-z0-9]@i', '_',$this->get_config('pagetitle'))); + $_ENV['staticpage_pagetitle'] = preg_replace('@[^a-z0-9]@i', '_',$this->get_config('pagetitle')); + $serendipity['smarty']->assign('staticpage_pagetitle', $_ENV['staticpage_pagetitle']); echo '

' . $this->get_config('headline') . '

'; echo '
'; diff --git a/serendipity_plugin_pollbox/ChangeLog b/serendipity_plugin_pollbox/ChangeLog new file mode 100644 index 00000000..d328cb57 --- /dev/null +++ b/serendipity_plugin_pollbox/ChangeLog @@ -0,0 +1 @@ +Propagate $smarty.env.staticpage_pagetitle (and the others) so that it can be used in entries.tpl \ No newline at end of file diff --git a/serendipity_plugin_pollbox/serendipity_event_pollbox.php b/serendipity_plugin_pollbox/serendipity_event_pollbox.php index d48111f0..62860498 100644 --- a/serendipity_plugin_pollbox/serendipity_event_pollbox.php +++ b/serendipity_plugin_pollbox/serendipity_event_pollbox.php @@ -20,7 +20,7 @@ class serendipity_event_pollbox extends serendipity_event { $propbag->add('configuration', array('permalink', "articleformat", "pagetitle", "articleformattitle")); $propbag->add('author', 'Garvin Hicking'); $propbag->add('groups', array('STATISTICS')); - $propbag->add('version', '2.12'); + $propbag->add('version', '2.13'); $propbag->add('requirements', array( 'serendipity' => '0.8', 'smarty' => '2.6.7', @@ -117,7 +117,8 @@ class serendipity_event_pollbox extends serendipity_event { if (!is_object($serendipity['smarty'])) { serendipity_smarty_init(); } - $serendipity['smarty']->assign('staticpage_pagetitle', preg_replace('@[^a-z0-9]@i', '_',$this->get_config('pagetitle'))); + $_ENV['staticpage_pagetitle'] = preg_replace('@[^a-z0-9]@i', '_',$this->get_config('pagetitle')); + $serendipity['smarty']->assign('staticpage_pagetitle', $_ENV['staticpage_pagetitle']); echo '
'; if (serendipity_db_bool($this->get_config('articleformat'))) {