Changing UploadComplete hook call so it actually does what the docs say it does....
authorRoan Kattouw <catrope@users.mediawiki.org>
Fri, 1 Feb 2008 19:26:58 +0000 (19:26 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Fri, 1 Feb 2008 19:26:58 +0000 (19:26 +0000)
includes/SpecialUpload.php

index 07d134b..3031f72 100644 (file)
@@ -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;
                }
        }