From: Brion Vibber Date: Sun, 16 Apr 2006 08:37:30 +0000 (+0000) Subject: Fix the UploadComplete hook. Threw lovely errors and probably didn't work right. :) X-Git-Tag: 1.31.0-rc.0~57476 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=9e33c162795a30742ba5d57f78ef7fe92b2e8713;p=lhc%2Fweb%2Fwiklou.git Fix the UploadComplete hook. Threw lovely errors and probably didn't work right. :) --- 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