Permalink
Browse files

Add formtoken to upgrade button

  • Loading branch information...
onli committed Jan 26, 2017
1 parent ba6d9ee commit d4d46855c29971c014eed33e2b8fb22f8c87b305
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugins/serendipity_event_spartacus/serendipity_event_spartacus.php
@@ -27,7 +27,7 @@ function introspect(&$propbag)
$propbag->add('description', PLUGIN_EVENT_SPARTACUS_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking');
$propbag->add('version', '2.37.1');
$propbag->add('version', '2.37.2');
$propbag->add('requirements', array(
'serendipity' => '1.6',
));
@@ -1234,7 +1234,7 @@ function event_hook($event, &$bag, &$eventData, $addData = null)
echo ' <a id="upgrade_event" class="button_link" href="?serendipity[adminModule]=plugins&amp;serendipity[adminAction]=addnew&amp;serendipity[only_group]=UPGRADE&amp;serendipity[type]=event">'. PLUGIN_EVENT_SPARTACUS_CHECK_EVENT .'</a> ';
} else {
echo ' <a id="upgrade_plugins" class="button_link" href="?serendipity[adminModule]=plugins&amp;serendipity[adminAction]=addnew&amp;serendipity[only_group]=UPGRADE">'. PLUGIN_EVENT_SPARTACUS_CHECK .'</a>';
echo ' <a id="upgrade_plugins" class="button_link" href="?serendipity[adminModule]=plugins&amp;serendipity[adminAction]=addnew&amp;serendipity[only_group]=UPGRADE' . '&amp;' . serendipity_setFormToken('url') . '">'. PLUGIN_EVENT_SPARTACUS_CHECK .'</a>';
}
echo '</div>';
}

0 comments on commit d4d4685

Please sign in to comment.