http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95166
Revision: 95166
Author: dantman
Date: 2011-08-21 18:23:59 +0000 (Sun, 21 Aug 2011)
Log Message:
-----------
Remove the * {{msg}} syntax introduced to MediaWiki:Sidebar in r66974. This
syntax is in the way of projects attempting to use a more flexible sidebar-like
message parser, or fixing the dependence on MediaWiki:Sidebar for sidebar
config. Eliminating it before people end up using it in production (from my
tests it never actually worked in 1.17).
Modified Paths:
--------------
trunk/phase3/includes/Skin.php
Modified: trunk/phase3/includes/Skin.php
===================================================================
--- trunk/phase3/includes/Skin.php 2011-08-21 18:15:37 UTC (rev 95165)
+++ trunk/phase3/includes/Skin.php 2011-08-21 18:23:59 UTC (rev 95166)
@@ -1111,7 +1111,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 = '';
@@ -1181,25 +1180,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