staticpage: fix smarty_getCategoryLinkByID in s9y 2.3

This commit is contained in:
onli 2019-07-24 21:25:23 +02:00
parent 902a8a1ece
commit 83ab6c8110
3 changed files with 6 additions and 3 deletions

View file

@ -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

View file

@ -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',

View file

@ -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);
}
}