PHP 5.4 compat reference fix

This commit is contained in:
Ian 2013-03-11 13:23:23 +01:00
parent 48fb4cbcae
commit 7ae37bb731
2 changed files with 6 additions and 4 deletions

View file

@ -1,3 +1,5 @@
4.01 PHP 5.4 compat reference fix (~L 1097)
4.00 rewrote document.write replacement (81e9911) to be more html standard conform
3.99 fixed disabling collapsible structure box in case of wysiwyg-editor use

View file

@ -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.00');
$propbag->add('version', '4.01');
$propbag->add('requirements', array(
'serendipity' => '1.3',
'smarty' => '2.6.7',
@ -1094,7 +1094,7 @@ class serendipity_event_staticpage extends serendipity_event
return false;
}
function getTemplate(&$id)
function getTemplate($id)
{
global $serendipity;
@ -1123,7 +1123,7 @@ class serendipity_event_staticpage extends serendipity_event
@include_once dirname(__FILE__) . '/smarty.inc.php';
if (isset($serendipity['smarty'])) {
$staticpage_cat = $this->fetchCatProp($serendipity['GET']['category']);
$serendipity['smarty']->assign('staticpage_categorypage', $this->fetchStaticPageForCat($staticpage_cat));
$serendipity['smarty']->assign('staticpage_categorypage', $this->fetchStaticPageForCat($staticpage_cat));
$serendipity['smarty']->assign('serendipityArchiveURL', getArchiveURL());
$serendipity['smarty']->register_function('getCategoryLinkByID', 'smarty_getCategoryLinkByID');
$serendipity['smarty']->register_function('staticpage_display', 'staticpage_display');
@ -1276,7 +1276,7 @@ class serendipity_event_staticpage extends serendipity_event
);
$filename = basename($filename);
$tfile = serendipity_getTemplateFile($filename, 'serendipityPath');
$tfile = serendipity_getTemplateFile($filename, 'serendipityPath');
if (!$tfile || $tfile == $filename) {
$tfile = dirname(__FILE__) . '/' . $filename;
}