mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserFunctions
synced 2024-11-15 11:59:54 +00:00
More deprecated method call removals and updates
This commit is contained in:
parent
5fa066a6e9
commit
17b2757a6a
|
@ -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 {
|
||||
$result = $wgContLang->sprintfDate( $format, $ts );
|
||||
|
@ -521,8 +518,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',
|
||||
array( 'escape', 'parsemag', 'content' ),
|
||||
|
|
Loading…
Reference in a new issue