magic words
* (bug 5403) Fix Special:Newpages RSS/Atom feeds
* Reject malformed addresses in X-Forwarded-For entries
-
+* (bug 3359) Add hooks on completion of file upload
== Compatibility ==
string $tempName: filesystem path to the temporary file for checks
string &$error: output: HTML error to show if upload canceled by returning false
+'UploadComplete': Upon completion of a file upload
+$image: Image object representing the file that was uploaded
+
'UserCan': To interrupt/advise the "user can do X to Y article" check
$title: Title object being checked against
$user : Current user object
if ( $success ) {
$this->showSuccess();
+ wfRunHooks( 'UploadComplete', &$img );
} else {
// Image::recordUpload() fails if the image went missing, which is
// unlikely, hence the lack of a specialised message