fixes Bug 26459 - The renderNavigation and renderPortals functions should be protecte...
authorMark A. Hershberger <mah@users.mediawiki.org>
Fri, 10 Feb 2012 20:28:12 +0000 (20:28 +0000)
committerMark A. Hershberger <mah@users.mediawiki.org>
Fri, 10 Feb 2012 20:28:12 +0000 (20:28 +0000)
Patch from Christian Neubauer

CREDITS
skins/Vector.php

diff --git a/CREDITS b/CREDITS
index 1f40ddd..1825e0b 100644 (file)
--- a/CREDITS
+++ b/CREDITS
@@ -95,6 +95,7 @@ following names for their contribution to the product.
 * Brianna Laugher
 * Carlin
 * Carsten Nielsen
+* Christian Neubauer
 * Conrad Irwin
 * cryptocoryne
 * Dan Barrett
index 0c7686a..74b2fff 100644 (file)
@@ -250,7 +250,7 @@ class VectorTemplate extends BaseTemplate {
         *
         * @param $portals array
         */
-       private function renderPortals( $portals ) {
+       protected function renderPortals( $portals ) {
                // Force the rendering of the following portals
                if ( !isset( $portals['SEARCH'] ) ) {
                        $portals['SEARCH'] = true;
@@ -292,7 +292,7 @@ class VectorTemplate extends BaseTemplate {
         * @param $msg null|string
         * @param $hook null|string|array
         */
-       private function renderPortal( $name, $content, $msg = null, $hook = null ) {
+       protected function renderPortal( $name, $content, $msg = null, $hook = null ) {
                if ( $msg === null ) {
                        $msg = $name;
                }
@@ -330,7 +330,7 @@ class VectorTemplate extends BaseTemplate {
         *
         * @param $elements array
         */
-       private function renderNavigation( $elements ) {
+       protected function renderNavigation( $elements ) {
                global $wgVectorUseSimpleSearch;
 
                // If only one element was given, wrap it in an array, allowing more