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:
parent
8a8a584498
commit
f113207fcb
8 changed files with 19 additions and 8 deletions
|
@ -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)
|
|
@ -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&serendipity[adminAction]=adminnotes"><?php echo PLUGIN_ADMINNOTES_TITLE; ?></a></li>
|
||||
<?php
|
||||
} else {
|
||||
}
|
||||
// Serendipity 2.0 now uses the new backend_sidebar_admin hook
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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&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&serendipity[adminAction]=dbclean">' .PLUGIN_EVENT_DBCLEAN_NAME .'</a></li>';
|
||||
} else {
|
||||
echo '<li><a href="?serendipity[adminModule]=event_display&serendipity[adminAction]=dbclean">' .PLUGIN_EVENT_DBCLEAN_NAME .'</a></li>';
|
||||
}
|
||||
return true;
|
||||
break;
|
||||
|
||||
|
|
|
@ -1268,6 +1268,7 @@ class serendipity_event_spamblock_bayes extends serendipity_event {
|
|||
</a>
|
||||
</li>';
|
||||
}
|
||||
} else {
|
||||
}
|
||||
return true;
|
||||
break;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php
|
||||
|
||||
// Actual version of both plugins
|
||||
@define('PLUGIN_TWITTER_VERSION', '1.62');
|
||||
@define('PLUGIN_TWITTER_VERSION', '1.63');
|
||||
|
|
|
@ -1010,6 +1010,7 @@ class serendipity_event_twitter extends serendipity_plugin {
|
|||
?>
|
||||
<li class="serendipitySideBarMenuLink serendipitySideBarMenuEntryLinks"><a href="?serendipity[adminModule]=event_display&serendipity[adminAction]=tweeter"><?php echo PLUGIN_EVENT_TWITTER_TWEETER_SIDEBARTITLE; ?></a></li>
|
||||
<?php
|
||||
} else {
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue