Florianschmidtwelzow has uploaded a new change for review.

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

Change subject: Get rid of MOBILEFRONTEND contant
......................................................................

Get rid of MOBILEFRONTEND contant

Depends on I6f787a1aca2d749c0284e764d0ccb4b2cb578fe6

Change-Id: I65cedeb11db6e75c211b72ba1f91067325f4dfc1
---
M includes/Gather.hooks.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Gather 
refs/changes/98/210098/1

diff --git a/includes/Gather.hooks.php b/includes/Gather.hooks.php
index ecdf8cc..29f456d 100644
--- a/includes/Gather.hooks.php
+++ b/includes/Gather.hooks.php
@@ -136,7 +136,7 @@
        public static function onExtensionSetup() {
                // FIXME: This doesn't do anything as if mobilefrontend is not 
present
                // The reported error is "This requires Gather."
-               if ( !defined( 'MOBILEFRONTEND' ) ) {
+               if ( 
!ExtensionRegistry::getInstance()->isLoaded('MobileFrontend') ) {
                        echo "Gather extension requires MobileFrontend.\n";
                        die( -1 );
                }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I65cedeb11db6e75c211b72ba1f91067325f4dfc1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Gather
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow <florian.schmidt.wel...@t-online.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to