Index: trunk/phase3/includes/Skin.php |
— | — | @@ -2104,7 +2104,7 @@ |
2105 | 2105 | } |
2106 | 2106 | |
2107 | 2107 | $bar = array(); |
2108 | | - $this->addToSidebar( $bar, 'sidebar' ); |
| 2108 | + $this->addToSidebar( $bar, wfMsgForContentNoTrans( 'sidebar' ) ); |
2109 | 2109 | |
2110 | 2110 | wfRunHooks( 'SkinBuildSidebar', array( $this, &$bar ) ); |
2111 | 2111 | if ( $wgEnableSidebarCache ) { |
— | — | @@ -2113,26 +2113,16 @@ |
2114 | 2114 | wfProfileOut( __METHOD__ ); |
2115 | 2115 | return $bar; |
2116 | 2116 | } |
2117 | | - /** |
2118 | | - * Add content from a sidebar system message |
2119 | | - * Currently only used for MediaWiki:Sidebar (but may be used by Extensions) |
2120 | | - * |
2121 | | - * This is just a wrapper around addToSidebarPlain() for backwards compatibility |
2122 | | - * |
2123 | | - * @param &$bar array |
2124 | | - * @param $message String |
2125 | | - */ |
2126 | | - function addToSidebar( &$bar, $message ) { |
2127 | | - $this->addToSidebarPlain( $bar, wfMsgForContent( $message ) ); |
2128 | | - } |
2129 | 2117 | |
2130 | 2118 | /** |
2131 | | - * Add content from plain text |
2132 | | - * @since 1.17 |
| 2119 | + * Add content to the sidebar from text |
| 2120 | + * @since 1.16 |
2133 | 2121 | * @param &$bar array |
2134 | 2122 | * @param $text string |
| 2123 | + * |
| 2124 | + * @return array |
2135 | 2125 | */ |
2136 | | - function addToSidebarPlain( &$bar, $text ) { |
| 2126 | + function addToSidebar( &$bar, $text ) { |
2137 | 2127 | $lines = explode( "\n", $text ); |
2138 | 2128 | $heading = ''; |
2139 | 2129 | foreach( $lines as $line ) { |
Index: trunk/extensions/DynamicSidebar/DynamicSidebar.body.php |
— | — | @@ -32,15 +32,15 @@ |
33 | 33 | $catSB = array(); |
34 | 34 | if ( $wgDynamicSidebarUseGroups && isset( $sidebar['GROUP-SIDEBAR'] ) ) { |
35 | 35 | self::printDebug( "Using group sidebar" ); |
36 | | - $skin->addToSidebarPlain( $groupSB, self::doGroupSidebar() ); |
| 36 | + $skin->addToSidebar( $groupSB, self::doGroupSidebar() ); |
37 | 37 | } |
38 | 38 | if ( $wgDynamicSidebarUseUserpages && isset( $sidebar['USER-SIDEBAR'] ) ) { |
39 | 39 | self::printDebug( "Using user sidebar" ); |
40 | | - $skin->addToSidebarPlain( $userSB, self::doUserSidebar() ); |
| 40 | + $skin->addToSidebar( $userSB, self::doUserSidebar() ); |
41 | 41 | } |
42 | 42 | if ( $wgDynamicSidebarUseCategories && isset( $sidebar['CATEGORY-SIDEBAR'] ) ) { |
43 | 43 | self::printDebug( "Using category sidebar" ); |
44 | | - $skin->addToSidebarPlain( $catSB, self::doCategorySidebar() ); |
| 44 | + $skin->addToSidebar( $catSB, self::doCategorySidebar() ); |
45 | 45 | } |
46 | 46 | |
47 | 47 | $sidebar_copy = array(); |
Index: trunk/extensions/GroupsSidebar/GroupsSidebar.body.php |
— | — | @@ -11,7 +11,7 @@ |
12 | 12 | foreach ( $wgGroupsSidebar as $group => $sectiontitle ) { |
13 | 13 | if (in_array($group, $wgUser->getEffectiveGroups())) { |
14 | 14 | $message = 'sidebar-'.$sectiontitle; |
15 | | - $skin->addToSidebar( &$bar, $message ); |
| 15 | + $skin->addToSidebar( $bar, wfMsgForContentNoTrans( $message ) ); |
16 | 16 | } |
17 | 17 | } |
18 | 18 | return true; |