staticpage: fix smarty_getCategoryLinkByID in s9y 2.3
This commit is contained in:
parent
902a8a1ece
commit
83ab6c8110
|
@ -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.2: Fix smarty reference.
|
||||||
|
|
||||||
4.15.1: Fix deprecated use of undefined constant INCLUDE_ANY
|
4.15.1: Fix deprecated use of undefined constant INCLUDE_ANY
|
||||||
|
|
|
@ -90,7 +90,7 @@ class serendipity_event_staticpage extends serendipity_event
|
||||||
$propbag->add('page_configuration', $this->config);
|
$propbag->add('page_configuration', $this->config);
|
||||||
$propbag->add('type_configuration', $this->config_types);
|
$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('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(
|
$propbag->add('requirements', array(
|
||||||
'serendipity' => '2.0',
|
'serendipity' => '2.0',
|
||||||
'smarty' => '2.6.7',
|
'smarty' => '2.6.7',
|
||||||
|
|
|
@ -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
|
* @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']);
|
$cat = serendipity_fetchCategoryInfo($data['cid']);
|
||||||
$result = serendipity_getPermalink($cat, 'category');
|
$result = serendipity_getPermalink($cat, 'category');
|
||||||
return $result;
|
return $result;
|
||||||
|
@ -96,4 +96,4 @@ function smarty_getCategoryLinkByID ($data, &$smarty) {
|
||||||
function getArchiveURL() {
|
function getArchiveURL() {
|
||||||
global $serendipity;
|
global $serendipity;
|
||||||
return serendipity_rewriteURL(PATH_ARCHIVES);
|
return serendipity_rewriteURL(PATH_ARCHIVES);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue