jenkins-bot has submitted this change and it was merged.
Change subject: Update mobile specialpages to use executeWhenAvailable()
......................................................................
Update mobile specialpages to use executeWhenAvailable()
Even though these special pages are already in stable, they should
follow the same pattern as the others (the executeWhenAvailable()
pattern introduced in b287d31dc2e76c4b80f85c9a10add81749080d19).
Change-Id: I6f0ab5c45a50666886d9c6c5bdfc721a94e59fe1
---
M includes/specials/SpecialMobileUserlogin.php
M includes/specials/SpecialMobileWatchlist.php
M includes/specials/SpecialNearby.php
M includes/specials/SpecialUploads.php
4 files changed, 4 insertions(+), 5 deletions(-)
Approvals:
Jdlrobson: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/specials/SpecialMobileUserlogin.php
b/includes/specials/SpecialMobileUserlogin.php
index e62b3fd..83069e2 100644
--- a/includes/specials/SpecialMobileUserlogin.php
+++ b/includes/specials/SpecialMobileUserlogin.php
@@ -2,7 +2,7 @@
class SpecialMobileUserlogin extends LoginForm {
- function execute( $par ) {
+ function executeWhenAvailable( $par ) {
if ( $this->getRequest()->getVal( 'type' ) == 'signup' ) {
$key = 'mobile-frontend-sign-up-heading';
} else {
diff --git a/includes/specials/SpecialMobileWatchlist.php
b/includes/specials/SpecialMobileWatchlist.php
index e6d5801..9645f25 100644
--- a/includes/specials/SpecialMobileWatchlist.php
+++ b/includes/specials/SpecialMobileWatchlist.php
@@ -33,9 +33,8 @@
Html::closeElement( 'div' )
);
}
- function execute( $par ) {
+ function executeWhenAvailable( $par ) {
wfProfileIn( __METHOD__ );
- parent::execute( $par );
$ctx = MobileContext::singleton();
$this->usePageImages = !$ctx->imagesDisabled() && defined(
'PAGE_IMAGES_INSTALLED' );
diff --git a/includes/specials/SpecialNearby.php
b/includes/specials/SpecialNearby.php
index aef221c..c67935a 100644
--- a/includes/specials/SpecialNearby.php
+++ b/includes/specials/SpecialNearby.php
@@ -6,7 +6,7 @@
$this->listed = true;
}
- public function execute( $par = '' ) {
+ public function executeWhenAvailable( $par = '' ) {
global $wgMFNearbyRange;
$this->setHeaders();
diff --git a/includes/specials/SpecialUploads.php
b/includes/specials/SpecialUploads.php
index 4a7a548..afa1f8d 100644
--- a/includes/specials/SpecialUploads.php
+++ b/includes/specials/SpecialUploads.php
@@ -6,7 +6,7 @@
parent::__construct( 'Uploads' );
}
- public function execute( $par = '' ) {
+ public function executeWhenAvailable( $par = '' ) {
global $wgMFPhotoUploadEndpoint;
$user = $par ? User::newFromName( $par ) : $this->getUser();
--
To view, visit https://gerrit.wikimedia.org/r/92601
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I6f0ab5c45a50666886d9c6c5bdfc721a94e59fe1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Awjrichards <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits