Index: trunk/phase3/includes/Skin.php |
— | — | @@ -1111,7 +1111,6 @@ |
1112 | 1112 | */ |
1113 | 1113 | function addToSidebarPlain( &$bar, $text ) { |
1114 | 1114 | $lines = explode( "\n", $text ); |
1115 | | - $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. |
1116 | 1115 | |
1117 | 1116 | $heading = ''; |
1118 | 1117 | |
— | — | @@ -1181,25 +1180,12 @@ |
1182 | 1181 | 'id' => 'n-' . Sanitizer::escapeId( strtr( $line[1], ' ', '-' ), 'noninitial' ), |
1183 | 1182 | 'active' => false |
1184 | 1183 | ), $extraAttribs ); |
1185 | | - } elseif ( ( substr( $line, 0, 2 ) == '{{' ) && ( substr( $line, -2 ) == '}}' ) ) { |
1186 | | - global $wgParser; |
1187 | | - |
1188 | | - $line = substr( $line, 2, strlen( $line ) - 4 ); |
1189 | | - |
1190 | | - $options = new ParserOptions(); |
1191 | | - $options->setEditSection( false ); |
1192 | | - $options->setInterfaceMessage( true ); |
1193 | | - $wikiBar[$heading] = $wgParser->parse( wfMsgForContentNoTrans( $line ) , $this->getTitle(), $options )->getText(); |
1194 | 1184 | } else { |
1195 | 1185 | continue; |
1196 | 1186 | } |
1197 | 1187 | } |
1198 | 1188 | } |
1199 | 1189 | |
1200 | | - if ( count( $wikiBar ) > 0 ) { |
1201 | | - $bar = array_merge( $bar, $wikiBar ); |
1202 | | - } |
1203 | | - |
1204 | 1190 | return $bar; |
1205 | 1191 | } |
1206 | 1192 | |