http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95167

Revision: 95167
Author:   dantman
Date:     2011-08-21 18:30:39 +0000 (Sun, 21 Aug 2011)
Log Message:
-----------
Followup r95166, removing this from 1.18 before it is released and we can't 
remove it from 1.19.

Modified Paths:
--------------
    branches/REL1_18/phase3/includes/Skin.php

Modified: branches/REL1_18/phase3/includes/Skin.php
===================================================================
--- branches/REL1_18/phase3/includes/Skin.php   2011-08-21 18:23:59 UTC (rev 
95166)
+++ branches/REL1_18/phase3/includes/Skin.php   2011-08-21 18:30:39 UTC (rev 
95167)
@@ -1215,7 +1215,6 @@
         */
        function addToSidebarPlain( &$bar, $text ) {
                $lines = explode( "\n", $text );
-               $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.
 
                $heading = '';
 
@@ -1295,25 +1294,12 @@
                                                'id' => 'n-' . 
Sanitizer::escapeId( strtr( $line[1], ' ', '-' ), 'noninitial' ),
                                                'active' => false
                                        ), $extraAttribs );
-                               } elseif ( ( substr( $line, 0, 2 ) == '{{' ) && 
( substr( $line, -2 ) == '}}' ) ) {
-                                       global $wgParser;
-
-                                       $line = substr( $line, 2, strlen( $line 
) - 4 );
-
-                                       $options = new ParserOptions();
-                                       $options->setEditSection( false );
-                                       $options->setInterfaceMessage( true );
-                                       $wikiBar[$heading] = $wgParser->parse( 
wfMsgForContentNoTrans( $line ) , $this->getTitle(), $options )->getText();
                                } else {
                                        continue;
                                }
                        }
                }
 
-               if ( count( $wikiBar ) > 0 ) {
-                       $bar = array_merge( $bar, $wikiBar );
-               }
-
                return $bar;
        }
 


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to