Index: trunk/phase3/includes/Skin.php |
— | — | @@ -2095,11 +2095,22 @@ |
2096 | 2096 | * Add content from a sidebar system message |
2097 | 2097 | * Currently only used for MediaWiki:Sidebar (but may be used by Extensions) |
2098 | 2098 | * |
| 2099 | + * This is just a wrapper around addToSidebarPlain() for backwards compatibility |
| 2100 | + * |
2099 | 2101 | * @param &$bar array |
2100 | 2102 | * @param $message String |
2101 | 2103 | */ |
2102 | 2104 | function addToSidebar( &$bar, $message ) { |
2103 | | - $lines = explode( "\n", wfMsgForContent( $message ) ); |
| 2105 | + $this->addToSidebarPlain( $bar, wfMsgForContent( $message ) ); |
| 2106 | + } |
| 2107 | + |
| 2108 | + /** |
| 2109 | + * Add content from plain text |
| 2110 | + * @param &$bar array |
| 2111 | + * @param $text string |
| 2112 | + */ |
| 2113 | + function addToSidebarPlain( &$bar, $text ) { |
| 2114 | + $lines = explode( "\n", $text ); |
2104 | 2115 | $heading = ''; |
2105 | 2116 | foreach( $lines as $line ) { |
2106 | 2117 | if( strpos( $line, '*' ) !== 0 ) { |