Ejegg has uploaded a new change for review.

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

Change subject: Only override MWException if not in mediawiki
......................................................................

Only override MWException if not in mediawiki

Conditional class declaration.  Cool!

Change-Id: If9a0ecfc6251e8e84288b7429a0e473f8fa1dcc0
---
M gateway_common/MWException.drupal.php
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface 
refs/changes/13/196413/1

diff --git a/gateway_common/MWException.drupal.php 
b/gateway_common/MWException.drupal.php
index d2d24f8..4814b27 100644
--- a/gateway_common/MWException.drupal.php
+++ b/gateway_common/MWException.drupal.php
@@ -1,4 +1,6 @@
 <?php
 
-class MWException extends Exception {
+if ( !defined( 'MEDIAWIKI' ) ) {
+       class MWException extends Exception {
+       }
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If9a0ecfc6251e8e84288b7429a0e473f8fa1dcc0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Ejegg <eeggles...@wikimedia.org>

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

Reply via email to