Fix duplicate backend nav link.

Unfortunately, I misunderstood the example code for switching the
backend nav section, so some plugin were linked to twice in the
backend nav. This should fix it.
This commit is contained in:
Matthias Mees 2014-06-05 22:20:32 +02:00
parent 8a8a584498
commit f113207fcb
8 changed files with 19 additions and 8 deletions

View file

@ -1,2 +1,3 @@
0.10: Don't emit backend link twice in 1.x (yellowled)
0.9: Use serendipity 2.0 backend hook
0.8: Added additional backend markup for 2.0 backend (yellowled)

View file

@ -27,7 +27,7 @@ class serendipity_event_adminnotes extends serendipity_event {
'php' => '4.1.0'
));
$propbag->add('version', '0.9');
$propbag->add('version', '0.10');
$propbag->add('author', 'Garvin Hicking, Matthias Mees');
$propbag->add('stackable', false);
$propbag->add('configuration', array('feedback', 'limit', 'html', 'markup', 'cutoff'));
@ -434,6 +434,7 @@ class serendipity_event_adminnotes extends serendipity_event {
?>
<li class="serendipitySideBarMenuLink serendipitySideBarMenuEntryLinks"><a href="?serendipity[adminModule]=event_display&amp;serendipity[adminAction]=adminnotes"><?php echo PLUGIN_ADMINNOTES_TITLE; ?></a></li>
<?php
} else {
}
// Serendipity 2.0 now uses the new backend_sidebar_admin hook

View file

@ -1,3 +1,6 @@
0.2.6:
Proper nav markup for 2.0 backend (yellowled)
0.2.5:
Added additional backend markup for 2.0 backend (yellowled)

View file

@ -24,7 +24,7 @@ class serendipity_event_dbclean extends serendipity_event {
$propbag->add('description', PLUGIN_EVENT_DBCLEAN_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Malte Paskuda, Matthias Mees');
$propbag->add('version', '0.2.5');
$propbag->add('version', '0.2.6');
$propbag->add('requirements', array(
'serendipity' => '0.8'
));
@ -87,11 +87,11 @@ class serendipity_event_dbclean extends serendipity_event {
break;
case 'backend_sidebar_admin':
echo '<li class="serendipitySideBarMenuLink serendipitySideBarMenuEntryLinks">
<a href="?serendipity[adminModule]=event_display&amp;serendipity[adminAction]=dbclean">
' .PLUGIN_EVENT_DBCLEAN_NAME .'
</a>
</li>';
if ($serendipity['version'][0] == '1') {
echo '<li class="serendipitySideBarMenuLink serendipitySideBarMenuEntryLinks"><a href="?serendipity[adminModule]=event_display&amp;serendipity[adminAction]=dbclean">' .PLUGIN_EVENT_DBCLEAN_NAME .'</a></li>';
} else {
echo '<li><a href="?serendipity[adminModule]=event_display&amp;serendipity[adminAction]=dbclean">' .PLUGIN_EVENT_DBCLEAN_NAME .'</a></li>';
}
return true;
break;

View file

@ -1268,6 +1268,7 @@ class serendipity_event_spamblock_bayes extends serendipity_event {
</a>
</li>';
}
} else {
}
return true;
break;

View file

@ -9,6 +9,10 @@ TODO:
* Twitter announcements/credentials etc. per author instead of
only per central blog
1.63
--------------------------
* Fix emitting the backend nav link twice (yellowled)
1.62
--------------------------
* Emit the twitter timeline header at the proper place in the markup,

View file

@ -1,4 +1,4 @@
<?php
// Actual version of both plugins
@define('PLUGIN_TWITTER_VERSION', '1.62');
@define('PLUGIN_TWITTER_VERSION', '1.63');

View file

@ -1010,6 +1010,7 @@ class serendipity_event_twitter extends serendipity_plugin {
?>
<li class="serendipitySideBarMenuLink serendipitySideBarMenuEntryLinks"><a href="?serendipity[adminModule]=event_display&amp;serendipity[adminAction]=tweeter"><?php echo PLUGIN_EVENT_TWITTER_TWEETER_SIDEBARTITLE; ?></a></li>
<?php
} else {
}
}
return true;