From 207b97305fb85bae22f2a687fc96d29e6e7bd87b Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Fri, 1 Feb 2008 19:26:58 +0000 Subject: [PATCH] Changing UploadComplete hook call so it actually does what the docs say it does. Previous behavior made no sense whatsoever. --- includes/SpecialUpload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.20.1