Fix the UploadComplete hook. Threw lovely errors and probably didn't work right. :)
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 16 Apr 2006 08:37:30 +0000 (08:37 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 16 Apr 2006 08:37:30 +0000 (08:37 +0000)
includes/SpecialUpload.php

index 367b937..1c486e6 100644 (file)
@@ -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