X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=docs%2Fhooks.txt;h=9e6ed10fc9f4636db09139d508bac42a87182929;hb=258d4497192f421421e4de8974103fef9bf12e24;hp=ae4a4dce906dd2c652029f2592065ef32935ac43;hpb=187ef28a08e82dd2cf4cbf2c8891db37f7769b03;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/hooks.txt b/docs/hooks.txt index ae4a4dce90..9e6ed10fc9 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -2431,10 +2431,12 @@ $flags: Flags passed to WikiPage::doEditContent() $revision: New Revision of the article 'PageContentLanguage': Allows changing the language in which the content of a -page is written. Defaults to the wiki content language ($wgContLang). +page is written. Defaults to the wiki content language. $title: Title object -&$pageLang: the page content language (either an object or a language code) -$wgLang: the user language +&$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 or StubUserLang object) 'PageContentSave': Before an article is saved. $wikiPage: the WikiPage (object) being saved