From 9e33c162795a30742ba5d57f78ef7fe92b2e8713 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 16 Apr 2006 08:37:30 +0000 Subject: [PATCH] Fix the UploadComplete hook. Threw lovely errors and probably didn't work right. :) --- includes/SpecialUpload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SpecialUpload.php b/includes/SpecialUpload.php index 367b937a52..1c486e605f 100644 --- a/includes/SpecialUpload.php +++ b/includes/SpecialUpload.php @@ -331,7 +331,7 @@ class UploadForm { if ( $success ) { $this->showSuccess(); - wfRunHooks( 'UploadComplete', &$img ); + wfRunHooks( 'UploadComplete', array( &$img ) ); } else { // Image::recordUpload() fails if the image went missing, which is // unlikely, hence the lack of a specialised message -- 2.20.1