jenkins-bot has submitted this change and it was merged.
Change subject: Replace deprecated SpecialPage::getLang()
......................................................................
Replace deprecated SpecialPage::getLang()
Change-Id: Ia5157ac1125cd1f527c987d61da834cb747c64ad
---
M specials/ConfigurationPage.php
M specials/SpecialViewConfig.php
2 files changed, 4 insertions(+), 4 deletions(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/specials/ConfigurationPage.php b/specials/ConfigurationPage.php
index 0b05598..429d42e 100644
--- a/specials/ConfigurationPage.php
+++ b/specials/ConfigurationPage.php
@@ -61,7 +61,7 @@
}
if ( is_array( $wgConfigureWikis ) &&
!in_array( $wiki, $wgConfigureWikis ) ) {
$this->getOutput()->wrapWikiMsg( '<div
class="errorbox"><strong>$1</strong></div>',
- array(
'configure-transwiki-not-in-range', $wiki, $this->getLang()->commaList(
$wgConfigureWikis ), count( $wgConfigureWikis ) ) );
+ array(
'configure-transwiki-not-in-range', $wiki, $this->getLanguage()->commaList(
$wgConfigureWikis ), count( $wgConfigureWikis ) ) );
return;
}
}
@@ -306,7 +306,7 @@
* Show "you are editing old version" message
*/
protected function showOldVersionMessage( $version ) {
- $lang = $this->getLang();
+ $lang = $this->getLanguage();
$this->getOutput()->addWikiMsg( 'configure-edit-old',
$lang->timeanddate( $version ),
$lang->date( $version ),
@@ -371,7 +371,7 @@
$versions = $wgConf->getArchiveVersions( array( 'wiki' =>
$this->mWiki, 'limit' => 11 ) );
$title = $this->getPageTitle();
- $lang = $this->getLang();
+ $lang = $this->getLanguage();
$prev = null;
ksort( $versions ); ## Put in ascending order for now.
diff --git a/specials/SpecialViewConfig.php b/specials/SpecialViewConfig.php
index 4f47773..e82547c 100644
--- a/specials/SpecialViewConfig.php
+++ b/specials/SpecialViewConfig.php
@@ -138,7 +138,7 @@
extract( $this->formatConf );
- $lang = $this->getLang();
+ $lang = $this->getLanguage();
$datime = $lang->timeanddate( $ts );
$date = $lang->date( $ts );
$time = $lang->time( $ts );
--
To view, visit https://gerrit.wikimedia.org/r/104393
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia5157ac1125cd1f527c987d61da834cb747c64ad
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/Configure
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>
Gerrit-Reviewer: IAlex <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Waldir <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits