jenkins-bot has submitted this change and it was merged.
Change subject: New hook EnterMobileMode
......................................................................
New hook EnterMobileMode
Informs other extensions that we're going to have a mobile page view
Change-Id: I40734cfec8b7c955efe2e63586546f0784086f5c
---
M includes/MobileContext.php
1 file changed, 3 insertions(+), 0 deletions(-)
Approvals:
awjrichards: Verified; Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/MobileContext.php b/includes/MobileContext.php
index b5e3425..66f1e0e 100644
--- a/includes/MobileContext.php
+++ b/includes/MobileContext.php
@@ -226,6 +226,9 @@
return $this->mobileView;
}
$this->mobileView = $this->shouldDisplayMobileViewInternal();
+ if ( $this->mobileView ) {
+ wfRunHooks( 'EnterMobileMode', array( $this ) );
+ }
return $this->mobileView;
}
--
To view, visit https://gerrit.wikimedia.org/r/57060
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I40734cfec8b7c955efe2e63586546f0784086f5c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: MaxSem <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: MaxSem <[email protected]>
Gerrit-Reviewer: awjrichards <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits