r93500 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93499‎ | r93500 | r93501 >
Date:00:42, 30 July 2011
Author:kaldari
Status:ok
Tags:
Comment:
addTemplate method should be public
Modified paths:
  • /trunk/extensions/CentralNotice/special/SpecialNoticeTemplate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/special/SpecialNoticeTemplate.php
@@ -783,7 +783,7 @@
784784 * @param $landingPages string list of landing pages (optional)
785785 * @return boolean banner successfully added or not?
786786 */
787 - private function addTemplate( $name, $body, $displayAnon, $displayAccount, $fundraising = 0,
 787+ public function addTemplate( $name, $body, $displayAnon, $displayAccount, $fundraising = 0,
788788 $landingPages = '' ) {
789789
790790 if ( $body == '' || $name == '' ) {

Status & tagging log