WMDE-Fisch has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/330398 )

Change subject: Fix var name in ApiUpload
......................................................................

Fix var name in ApiUpload

Found via phan.

Change-Id: I38b35db6b83d0728bcc8e0990f646b7d331cab13
---
M includes/api/ApiUpload.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/98/330398/1

diff --git a/includes/api/ApiUpload.php b/includes/api/ApiUpload.php
index 311fa54..f821374 100644
--- a/includes/api/ApiUpload.php
+++ b/includes/api/ApiUpload.php
@@ -719,7 +719,7 @@
         * @return StatusValue
         */
        protected function handleStashException( $e ) {
-               switch ( get_class( $exception ) ) {
+               switch ( get_class( $e ) ) {
                        case 'UploadStashFileNotFoundException':
                                $wrap = 'apierror-stashedfilenotfound';
                                break;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I38b35db6b83d0728bcc8e0990f646b7d331cab13
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: WMDE-Fisch <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to