Large commit. Removed 800+ references to no-op wfLoadExtensionMessages()

This commit is contained in:
Chad Horohoe 2010-05-26 22:25:32 +00:00
parent 5863a03006
commit 1813ce38bb
2 changed files with 0 additions and 5 deletions

View file

@ -48,7 +48,6 @@ define( 'EXPR_PI', 36 );
class ExprError extends Exception {
public function __construct($msg, $parameter = ''){
wfLoadExtensionMessages( 'ParserFunctions' );
$this->message = '<strong class="error">' . wfMsgForContent( "pfunc_expr_$msg", htmlspecialchars( $parameter ) ) . '</strong>';
}
}

View file

@ -288,7 +288,6 @@ class ExtParserFunctions {
if( $current == '..' ) { // removing one level
if( !count( $newExploded ) ){
// attempted to access a node above root node
wfLoadExtensionMessages( 'ParserFunctions' );
return '<strong class="error">' . wfMsgForContent( 'pfunc_rel2abs_invalid_depth', $fullPath ) . '</strong>';
}
// remove last level from the stack
@ -460,12 +459,10 @@ class ExtParserFunctions {
#format the timestamp and return the result
if ( $invalidTime ) {
wfLoadExtensionMessages( 'ParserFunctions' );
$result = '<strong class="error">' . wfMsgForContent( 'pfunc_time_error' ) . '</strong>';
} else {
$this->mTimeChars += strlen( $format );
if ( $this->mTimeChars > $this->mMaxTimeChars ) {
wfLoadExtensionMessages( 'ParserFunctions' );
return '<strong class="error">' . wfMsgForContent( 'pfunc_time_too_long' ) . '</strong>';
} else {
@ -530,7 +527,6 @@ class ExtParserFunctions {
// Generates error message. Called when string is too long.
private function tooLongError() {
global $wgPFStringLengthLimit, $wgContLang;
wfLoadExtensionMessages( 'ParserFunctions' );
return '<strong class="error">' .
wfMsgExt( 'pfunc_string_too_long',