* Fixed "Notice: Undefined variable: addmsg in /var/www/TrunkWiki/core/languages/Language.php on line 254"
Change-Id: Ib5fa6b7c1137f24bc998249af72eaf7301a2aaa8
$type = gettype( $code );
if( $type === 'object' ) {
$addmsg = " of class " . get_class( $code );
$type = gettype( $code );
if( $type === 'object' ) {
$addmsg = " of class " . get_class( $code );
+ } else {
+ $addmsg = '';
}
throw new MWException( __METHOD__ . " must be passed a string, $type given$addmsg" );
}
}
throw new MWException( __METHOD__ . " must be passed a string, $type given$addmsg" );
}