plugins/SpecialAdmin.php
changeset 173 91127e62f38f
parent 161 e1a22031b5bd
child 179 e858bacb5cfa
equal deleted inserted replaced
172:1bc7e849a264 173:91127e62f38f
  3156           break;
  3156           break;
  3157         case BLOCK_TEMPLATEFORMAT:
  3157         case BLOCK_TEMPLATEFORMAT:
  3158           $parser = $template->makeParserText($vars['sidebar_section']);
  3158           $parser = $template->makeParserText($vars['sidebar_section']);
  3159           $c = $template->tplWikiFormat($row['block_content'], false, 'sidebar-editor.tpl');
  3159           $c = $template->tplWikiFormat($row['block_content'], false, 'sidebar-editor.tpl');
  3160           $c = preg_replace('#<a (.*?)>(.*?)</a>#is', '<a href="#" onclick="return false;">\\2</a>', $c);
  3160           $c = preg_replace('#<a (.*?)>(.*?)</a>#is', '<a href="#" onclick="return false;">\\2</a>', $c);
       
  3161           // fix for the "Administration" link that somehow didn't get rendered properly
       
  3162           $c = preg_replace("/(^|\n)([ ]*)<a([ ]+.*)?>(.+)<\/a>(<br(.*)\/>)([\r\n]+|$)/isU", '\\1\\2<li><a\\3>\\4</a></li>\\7', $c);
  3161           break;
  3163           break;
  3162         case BLOCK_HTML:
  3164         case BLOCK_HTML:
  3163           $parser = $template->makeParserText($vars['sidebar_section_raw']);
  3165           $parser = $template->makeParserText($vars['sidebar_section_raw']);
  3164           $c = $row['block_content'];
  3166           $c = $row['block_content'];
  3165           $c = preg_replace('#<a (.*?)>(.*?)</a>#is', '<a href="#" onclick="return false;">\\2</a>', $c);
  3167           $c = preg_replace('#<a (.*?)>(.*?)</a>#is', '<a href="#" onclick="return false;">\\2</a>', $c);