From 7c710c3f8f27008c33c0c578f32d5640c1d457a2 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Fri, 10 Feb 2012 20:28:12 +0000 Subject: [PATCH] fixes Bug 26459 - The renderNavigation and renderPortals functions should be protected or public instead of private Patch from Christian Neubauer --- CREDITS | 1 + skins/Vector.php | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CREDITS b/CREDITS index 1f40dddcb2..1825e0ba7c 100644 --- 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 diff --git a/skins/Vector.php b/skins/Vector.php index 0c7686aef8..74b2fff735 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -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 -- 2.20.1