dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "externalstore: make ExternalStoreDB::getDomainId treat false the same as null"
[lhc/web/wiklou.git]
/
docs
/
hooks.txt
diff --git
a/docs/hooks.txt
b/docs/hooks.txt
index
e90468d
..
7f8b192
100644
(file)
--- a/
docs/hooks.txt
+++ b/
docs/hooks.txt
@@
-2448,7
+2448,7
@@
$title: Title object
&$pageLang: the page content language. Input can be anything (under control of
hook subscribers), but hooks should return Language objects. Language code
strings are deprecated.
&$pageLang: the page content language. Input can be anything (under control of
hook subscribers), but hooks should return Language objects. Language code
strings are deprecated.
-$userLang: the user language (Language o
r StubUserLang o
bject)
+$userLang: the user language (Language object)
'PageContentSave': Before an article is saved.
$wikiPage: the WikiPage (object) being saved
'PageContentSave': Before an article is saved.
$wikiPage: the WikiPage (object) being saved
@@
-3568,7
+3568,10
@@
hook. If your extension absolutely, positively must prevent some files from
being uploaded, use UploadVerifyFile or UploadVerifyUpload.
$upload: (object) An instance of UploadBase, with all info about the upload
$user: (object) An instance of User, the user uploading this file
being uploaded, use UploadVerifyFile or UploadVerifyUpload.
$upload: (object) An instance of UploadBase, with all info about the upload
$user: (object) An instance of User, the user uploading this file
-$props: (array) File properties, as returned by FSFile::getPropsFromPath()
+$props: (array|null) File properties, as returned by
+ MWFileProps::getPropsFromPath(). Note this is not always guaranteed to be set,
+ e.g. in test scenarios. Call MWFileProps::getPropsFromPath() yourself in case
+ you need the information.
&$error: output: If the file stashing should be prevented, set this to the
reason in the form of [ messagename, param1, param2, ... ] or a
MessageSpecifier instance (you might want to use ApiMessage to provide machine
&$error: output: If the file stashing should be prevented, set this to the
reason in the form of [ messagename, param1, param2, ... ] or a
MessageSpecifier instance (you might want to use ApiMessage to provide machine
@@
-3597,7
+3600,10
@@
MIME type (same as UploadVerifyFile) and the information entered by the user
(upload comment, file page contents etc.).
$upload: (object) An instance of UploadBase, with all info about the upload
$user: (object) An instance of User, the user uploading this file
(upload comment, file page contents etc.).
$upload: (object) An instance of UploadBase, with all info about the upload
$user: (object) An instance of User, the user uploading this file
-$props: (array) File properties, as returned by FSFile::getPropsFromPath()
+$props: (array|null) File properties, as returned by
+ MWFileProps::getPropsFromPath(). Note this is not always guaranteed to be set,
+ e.g. in test scenarios. Call MWFileProps::getPropsFromPath() yourself in case
+ you need the information.
$comment: (string) Upload log comment (also used as edit summary)
$pageText: (string) File description page text (only used for new uploads)
&$error: output: If the file upload should be prevented, set this to the reason
$comment: (string) Upload log comment (also used as edit summary)
$pageText: (string) File description page text (only used for new uploads)
&$error: output: If the file upload should be prevented, set this to the reason