includeentry - fixed $serendipity['author']

This commit is contained in:
Ian 2013-10-01 19:32:48 +02:00
parent ddc7e40a1a
commit 4cbc5cfe71
2 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,6 @@
2.14
- fixed $serendipity['author'] to be $serendipity['serendipityUser'];
2.13:
- Use SQL RANDOM() instead of RAND() for db type, except mysql

View file

@ -38,7 +38,7 @@ class serendipity_event_includeentry extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_INCLUDEENTRY_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking');
$propbag->add('version', '2.13');
$propbag->add('version', '2.14');
$propbag->add('scrambles_true_content', true);
$propbag->add('requirements', array(
'serendipity' => '0.8',
@ -357,7 +357,7 @@ class serendipity_event_includeentry extends serendipity_event
$this->staticblock['authorid'] = $serendipity['authorid'];
}
if (empty($this->staticblock['author'])) {
$this->staticblock['author'] = $serendipity['author'];
$this->staticblock['author'] = $serendipity['serendipityUser'];
}
if (empty($this->staticblock['type'])) {
if (isset($serendipity['POST']['type'])) {