Prevent output

This commit is contained in:
Garvin Hicking 2014-05-05 11:14:48 +02:00
parent 15e42e472b
commit 91c30209d7
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,8 @@
1.5:
----
Do not use next/prev links for staticpages
1.4:
----

View file

@ -22,7 +22,7 @@ class serendipity_event_linktoolbar extends serendipity_event {
$propbag->add('description', PLUGIN_LINKTOOLBAR_TITLE_DESC);
$propbag->add('event_hooks', array('frontend_header' => true));
$propbag->add('author', 'Garvin Hicking');
$propbag->add('version', '1.4');
$propbag->add('version', '1.5');
$propbag->add('requirements', array(
'serendipity' => '0.7',
'smarty' => '2.6.7',
@ -35,6 +35,11 @@ class serendipity_event_linktoolbar extends serendipity_event {
function backAndForth($link = null) {
global $serendipity;
if (!empty($serendipity['GET']['staticid']) || !empty($serendipity['GET']['subpage'])) {
// This is actually not used for staticpages/contact forms etc, it has no back/forth.
return true;
}
if (!is_array($link)) {
$link = array();