Fix draft check.
Fixes s9y/Serendipity#696. Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
parent
8c11320820
commit
a6d340cdf2
|
@ -1,3 +1,7 @@
|
|||
1.20:
|
||||
-----
|
||||
* Fix draft check.
|
||||
|
||||
1.19:
|
||||
-----
|
||||
* re-add unsigned
|
||||
|
|
|
@ -19,7 +19,7 @@ class serendipity_event_trackback extends serendipity_event
|
|||
$propbag->add('description', PLUGIN_EVENT_MTRACKBACK_TITLEDESC);
|
||||
$propbag->add('stackable', false);
|
||||
$propbag->add('author', 'Garvin Hicking, Malte Paskuda, Ian');
|
||||
$propbag->add('version', '1.19');
|
||||
$propbag->add('version', '1.20');
|
||||
$propbag->add('requirements', array(
|
||||
'serendipity' => '1.6',
|
||||
'smarty' => '2.6.7',
|
||||
|
@ -204,7 +204,7 @@ class serendipity_event_trackback extends serendipity_event
|
|||
|
||||
case 'backend_save':
|
||||
case 'backend_publish':
|
||||
if (!serendipity_db_bool($entry['isdraft'])
|
||||
if (!serendipity_db_bool($eventData['isdraft'])
|
||||
&&
|
||||
$eventData['timestamp'] >= serendipity_serverOffsetHour()
|
||||
&&
|
||||
|
|
Loading…
Reference in a new issue