r52955 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52954‎ | r52955 | r52956 >
Date:01:03, 9 July 2009
Author:simetrical
Status:ok
Tags:
Comment:
Adjust error message to be clearer for empty var
Modified paths:
  • /trunk/phase3/includes/Preferences.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Preferences.php
@@ -57,7 +57,7 @@
5858 } elseif( $field->validate( $globalDefault, $user->mOptions ) === true ) {
5959 $info['default'] = $globalDefault;
6060 } else {
61 - throw new MWException( "Global default $globalDefault is invalid for field $name" );
 61+ throw new MWException( "Global default '$globalDefault' is invalid for field $name" );
6262 }
6363 }
6464

Status & tagging log