mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserFunctions
synced 2024-11-15 11:59:54 +00:00
Large commit. Removed 800+ references to no-op wfLoadExtensionMessages()
This commit is contained in:
parent
5863a03006
commit
1813ce38bb
1
Expr.php
1
Expr.php
|
@ -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>';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue