r34059 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r34058‎ | r34059 | r34060 >
Date:19:15, 30 April 2008
Author:nikerabbit
Status:old
Tags:
Comment:
* oops, broke variable replacement
Modified paths:
  • /trunk/extensions/CentralAuth/SpecialCentralAuth.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralAuth/SpecialCentralAuth.php
@@ -134,23 +134,21 @@
135135 $wgOut->addHTML( $wgOut->parse( $wrap, /*linestart*/true, /*uilang*/true ) );
136136 }
137137
138 - function showError( $message /* varargs */ ) {
 138+ function showError( /* varargs */ ) {
139139 $args = func_get_args();
140 - array_shift( $args ); // remove first
141 - $args = array_values( $args );
142140
143141 global $wgOut;
144 - $wgOut->wrapWikiMsg( '<div class="error">$1</div>', $message, $args );
 142+ $wgOut->wrapWikiMsg( '<div class="error">$1</div>', $args );
145143 }
146144
147145
148 - function showSuccess( $message /* varargs */ ) {
 146+ function showSuccess( /* varargs */ ) {
149147 $args = func_get_args();
150148 array_shift( $args ); // remove first
151149 $args = array_values( $args );
152150
153151 global $wgOut;
154 - $wgOut->wrapWikiMsg( '<div class="success">$1</div>', $message, $args );
 152+ $wgOut->wrapWikiMsg( '<div class="success">$1</div>', $args );
155153 }
156154
157155 function showUsernameForm() {

Status & tagging log