diff --git a/serendipity_event_staticpage/ChangeLog b/serendipity_event_staticpage/ChangeLog index a5f59b71..c71d4c43 100644 --- a/serendipity_event_staticpage/ChangeLog +++ b/serendipity_event_staticpage/ChangeLog @@ -1,3 +1,6 @@ +4.15.3: Fix smarty_getCategoryLinkByID expecting a smarty reference, + for compatibility with serendipity 2.3 + 4.15.2: Fix smarty reference. 4.15.1: Fix deprecated use of undefined constant INCLUDE_ANY diff --git a/serendipity_event_staticpage/serendipity_event_staticpage.php b/serendipity_event_staticpage/serendipity_event_staticpage.php index 6090d244..9495175f 100644 --- a/serendipity_event_staticpage/serendipity_event_staticpage.php +++ b/serendipity_event_staticpage/serendipity_event_staticpage.php @@ -90,7 +90,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.15.2'); + $propbag->add('version', '4.15.3'); $propbag->add('requirements', array( 'serendipity' => '2.0', 'smarty' => '2.6.7', diff --git a/serendipity_event_staticpage/smarty.inc.php b/serendipity_event_staticpage/smarty.inc.php index 0fc6f085..57f0611a 100644 --- a/serendipity_event_staticpage/smarty.inc.php +++ b/serendipity_event_staticpage/smarty.inc.php @@ -80,7 +80,7 @@ function staticpage_display($params, &$smarty) { * @return string The URL of the category - must be added to {$serendipityBaseURL} for a full URL */ -function smarty_getCategoryLinkByID ($data, &$smarty) { +function smarty_getCategoryLinkByID ($data, $smarty) { $cat = serendipity_fetchCategoryInfo($data['cid']); $result = serendipity_getPermalink($cat, 'category'); return $result; @@ -96,4 +96,4 @@ function smarty_getCategoryLinkByID ($data, &$smarty) { function getArchiveURL() { global $serendipity; return serendipity_rewriteURL(PATH_ARCHIVES); -} \ No newline at end of file +}