plugins/SpecialAdmin.php
changeset 173 91127e62f38f
parent 161 e1a22031b5bd
child 179 e858bacb5cfa
--- a/plugins/SpecialAdmin.php	Sun Oct 07 17:22:25 2007 -0400
+++ b/plugins/SpecialAdmin.php	Tue Oct 09 16:14:55 2007 -0400
@@ -3158,6 +3158,8 @@
           $parser = $template->makeParserText($vars['sidebar_section']);
           $c = $template->tplWikiFormat($row['block_content'], false, 'sidebar-editor.tpl');
           $c = preg_replace('#<a (.*?)>(.*?)</a>#is', '<a href="#" onclick="return false;">\\2</a>', $c);
+          // fix for the "Administration" link that somehow didn't get rendered properly
+          $c = preg_replace("/(^|\n)([ ]*)<a([ ]+.*)?>(.+)<\/a>(<br(.*)\/>)([\r\n]+|$)/isU", '\\1\\2<li><a\\3>\\4</a></li>\\7', $c);
           break;
         case BLOCK_HTML:
           $parser = $template->makeParserText($vars['sidebar_section_raw']);