MaxSem has uploaded a new change for review. https://gerrit.wikimedia.org/r/57060
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(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend refs/changes/60/57060/1 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: newchange Gerrit-Change-Id: I40734cfec8b7c955efe2e63586546f0784086f5c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/MobileFrontend Gerrit-Branch: master Gerrit-Owner: MaxSem <maxsem.w...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits