From ed978a1f4fff85cf111b715dc4853dad63f98475 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Tue, 31 Aug 2010 11:01:00 +0000 Subject: [PATCH] Followup r71942. Documentation fix, the mime passed is a string, not an object. --- docs/hooks.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/hooks.txt b/docs/hooks.txt index 90b9089d4f..46af3b0f0d 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1684,9 +1684,9 @@ string &$error: output: message key for message to show if upload canceled 'UploadVerifyFile': extra file verification, based on mime type, etc. Preferred in most cases over UploadVerification. object $upload: an instance of UploadBase, with all info about the upload -object $mime: the uploaded file's mime type, as detected by MediaWiki. Handlers +string $mime: the uploaded file's mime type, as detected by MediaWiki. Handlers will typically only apply for specific mime types. -object &$error: output: true if the file is valid. Otherwise, and indexed array +object &$error: output: true if the file is valid. Otherwise, an indexed array representing the problem with the file, where the first element is the message key and the remaining elements are used as parameters to the message. -- 2.20.1