MaxSem has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/85865


Change subject: Add context to GetMobileUrl hook
......................................................................

Add context to GetMobileUrl hook

Change-Id: I7a888e78df3a149b7c514c4ae4994eaa92122c18
---
M includes/MobileContext.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/65/85865/1

diff --git a/includes/MobileContext.php b/includes/MobileContext.php
index ee3031e..58a8219 100644
--- a/includes/MobileContext.php
+++ b/includes/MobileContext.php
@@ -593,7 +593,7 @@
 
                if ( $this->shouldDisplayMobileView() ) {
                        $subdomainTokenReplacement = null;
-                       if ( wfRunHooks( 'GetMobileUrl', array( 
&$subdomainTokenReplacement ) ) ) {
+                       if ( wfRunHooks( 'GetMobileUrl', array( 
&$subdomainTokenReplacement, $this ) ) ) {
                                if ( !empty( $subdomainTokenReplacement ) ) {
                                        global $wgMobileUrlTemplate;
                                        $mobileUrlHostTemplate = 
$this->parseMobileUrlTemplate( 'host' );

-- 
To view, visit https://gerrit.wikimedia.org/r/85865
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7a888e78df3a149b7c514c4ae4994eaa92122c18
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

Reply via email to