Index: branches/REL1_18/phase3/includes/Skin.php |
— | — | @@ -1215,7 +1215,6 @@ |
1216 | 1216 | */ |
1217 | 1217 | function addToSidebarPlain( &$bar, $text ) { |
1218 | 1218 | $lines = explode( "\n", $text ); |
1219 | | - $wikiBar = array(); # We need to handle the wikitext on a different variable, to avoid trying to do an array operation on text, which would be a fatal error. |
1220 | 1219 | |
1221 | 1220 | $heading = ''; |
1222 | 1221 | |
— | — | @@ -1295,25 +1294,12 @@ |
1296 | 1295 | 'id' => 'n-' . Sanitizer::escapeId( strtr( $line[1], ' ', '-' ), 'noninitial' ), |
1297 | 1296 | 'active' => false |
1298 | 1297 | ), $extraAttribs ); |
1299 | | - } elseif ( ( substr( $line, 0, 2 ) == '{{' ) && ( substr( $line, -2 ) == '}}' ) ) { |
1300 | | - global $wgParser; |
1301 | | - |
1302 | | - $line = substr( $line, 2, strlen( $line ) - 4 ); |
1303 | | - |
1304 | | - $options = new ParserOptions(); |
1305 | | - $options->setEditSection( false ); |
1306 | | - $options->setInterfaceMessage( true ); |
1307 | | - $wikiBar[$heading] = $wgParser->parse( wfMsgForContentNoTrans( $line ) , $this->getTitle(), $options )->getText(); |
1308 | 1298 | } else { |
1309 | 1299 | continue; |
1310 | 1300 | } |
1311 | 1301 | } |
1312 | 1302 | } |
1313 | 1303 | |
1314 | | - if ( count( $wikiBar ) > 0 ) { |
1315 | | - $bar = array_merge( $bar, $wikiBar ); |
1316 | | - } |
1317 | | - |
1318 | 1304 | return $bar; |
1319 | 1305 | } |
1320 | 1306 | |