From: Roan Kattouw Date: Fri, 1 Feb 2008 19:26:58 +0000 (+0000) Subject: Changing UploadComplete hook call so it actually does what the docs say it does.... X-Git-Tag: 1.31.0-rc.0~49665 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=207b97305fb85bae22f2a687fc96d29e6e7bd87b;p=lhc%2Fweb%2Fwiklou.git Changing UploadComplete hook call so it actually does what the docs say it does. Previous behavior made no sense whatsoever. --- diff --git a/includes/SpecialUpload.php b/includes/SpecialUpload.php index 07d134b329..3031f728f7 100644 --- a/includes/SpecialUpload.php +++ b/includes/SpecialUpload.php @@ -558,7 +558,7 @@ class UploadForm { } // Success, redirect to description page $img = null; // @todo: added to avoid passing a ref to null - should this be defined somewhere? - wfRunHooks( 'UploadComplete', array( &$img ) ); + wfRunHooks( 'UploadComplete', array( &$this ) ); return self::SUCCESS; } }