From: Mark A. Hershberger Date: Fri, 10 Feb 2012 20:28:12 +0000 (+0000) Subject: fixes Bug 26459 - The renderNavigation and renderPortals functions should be protecte... X-Git-Tag: 1.31.0-rc.0~24790 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=7c710c3f8f27008c33c0c578f32d5640c1d457a2;p=lhc%2Fweb%2Fwiklou.git fixes Bug 26459 - The renderNavigation and renderPortals functions should be protected or public instead of private Patch from Christian Neubauer --- 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