From: WMDE-Fisch Date: Wed, 4 Jan 2017 11:54:45 +0000 (+0100) Subject: Fix var name in ApiUpload X-Git-Tag: 1.31.0-rc.0~4404 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22config_fonctions%22%2C%20%22image_process=%24process%22%29%20.%20%22?a=commitdiff_plain;h=4b89b32f278bc46767aa0f7eb4c7a7c718fed6ef;p=lhc%2Fweb%2Fwiklou.git Fix var name in ApiUpload Found via phan. Change-Id: I38b35db6b83d0728bcc8e0990f646b7d331cab13 --- diff --git a/includes/api/ApiUpload.php b/includes/api/ApiUpload.php index 311fa54a9f..f821374064 100644 --- a/includes/api/ApiUpload.php +++ b/includes/api/ApiUpload.php @@ -719,7 +719,7 @@ class ApiUpload extends ApiBase { * @return StatusValue */ protected function handleStashException( $e ) { - switch ( get_class( $exception ) ) { + switch ( get_class( $e ) ) { case 'UploadStashFileNotFoundException': $wrap = 'apierror-stashedfilenotfound'; break;