Harej has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/340660 )

Change subject: Replacing UsageException with ApiUsageException
......................................................................

Replacing UsageException with ApiUsageException

UsageException is deprecated in MediaWiki 1.29 in favor of
AptiUsageException

Change-Id: I98062e9c1a7a06a1bf8c78cb3520ae13bb4e667d
---
M includes/SpecialCreateCollaborationHub.php
M includes/SpecialCreateHubFeature.php
M includes/content/CollaborationHubContentHandler.php
M includes/content/CollaborationListContentHandler.php
4 files changed, 5 insertions(+), 5 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CollaborationKit 
refs/changes/60/340660/1

diff --git a/includes/SpecialCreateCollaborationHub.php 
b/includes/SpecialCreateCollaborationHub.php
index 7829849..7528058 100644
--- a/includes/SpecialCreateCollaborationHub.php
+++ b/includes/SpecialCreateCollaborationHub.php
@@ -205,7 +205,7 @@
                try {
                        $api = new ApiMain( $der, true );
                        $api->execute();
-               } catch ( UsageException $e ) {
+               } catch ( ApiUsageException $e ) {
                        return Status::newFatal(
                                $context->msg( 
'collaborationkit-hub-edit-apierror',
                                $e->getCodeString() )
diff --git a/includes/SpecialCreateHubFeature.php 
b/includes/SpecialCreateHubFeature.php
index ecb1c28..434fd6e 100644
--- a/includes/SpecialCreateHubFeature.php
+++ b/includes/SpecialCreateHubFeature.php
@@ -184,7 +184,7 @@
                        try {
                                $api = new ApiMain( $der, true );
                                $api->execute();
-                       } catch ( UsageException $e ) {
+                       } catch ( ApiUsageException $e ) {
                                return Status::newFatal(
                                        $context->msg(
                                                
'collaborationkit-hub-edit-apierror',
@@ -247,7 +247,7 @@
                try {
                        $api = new ApiMain( $der, true );
                        $api->execute();
-               } catch ( UsageException $e ) {
+               } catch ( ApiUsageException $e ) {
                        return Status::newFatal(
                                $context->msg(
                                        'collaborationkit-hub-edit-apierror',
diff --git a/includes/content/CollaborationHubContentHandler.php 
b/includes/content/CollaborationHubContentHandler.php
index 1d42d21..6238ccf 100644
--- a/includes/content/CollaborationHubContentHandler.php
+++ b/includes/content/CollaborationHubContentHandler.php
@@ -177,7 +177,7 @@
                try {
                        $api = new ApiMain( $der, true );
                        $api->execute();
-               } catch ( UsageException $e ) {
+               } catch ( ApiUsageException $e ) {
                        return Status::newFatal(
                                $context->msg( 
'collaborationkit-hub-edit-apierror',
                                $e->getCodeString() ) );
diff --git a/includes/content/CollaborationListContentHandler.php 
b/includes/content/CollaborationListContentHandler.php
index 8000c1f..ca2838b 100644
--- a/includes/content/CollaborationListContentHandler.php
+++ b/includes/content/CollaborationListContentHandler.php
@@ -203,7 +203,7 @@
                try {
                        $api = new ApiMain( $der, true );
                        $api->execute();
-               } catch ( UsageException $e ) {
+               } catch ( ApiUsageException $e ) {
                        return Status::newFatal(
                                $context->msg( 
'collaborationkit-hub-edit-apierror',
                                $e->getCodeString() )

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I98062e9c1a7a06a1bf8c78cb3520ae13bb4e667d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CollaborationKit
Gerrit-Branch: master
Gerrit-Owner: Harej <jamesmh...@gmail.com>

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

Reply via email to