Skip to content

Commit

Permalink
Add formtoken to upgrade button
Browse files Browse the repository at this point in the history
  • Loading branch information
onli committed Jan 26, 2017
1 parent ba6d9ee commit d4d4685
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
));
Expand Down Expand Up @@ -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>';
}
Expand Down

0 comments on commit d4d4685

Please sign in to comment.