r94250 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94249‎ | r94250 | r94251 >
Date:15:14, 11 August 2011
Author:robin
Status:ok
Tags:
Comment:
merge r94248 (documentation relevant to 1.18)
Modified paths:
  • /branches/REL1_18/phase3/docs/hooks.txt (modified) (history)
  • /branches/REL1_18/phase3/includes/Title.php (modified) (history)
  • /branches/REL1_18/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: branches/REL1_18/phase3/docs/hooks.txt
@@ -1279,6 +1279,12 @@
12801280 $links: array, intended to hold the result. Must be an associative array with
12811281 category types as keys and arrays of HTML links as values.
12821282
 1283+'PageContentLanguage': allows changing the language in which the content of
 1284+a page is written. Defaults to the wiki content language ($wgContLang).
 1285+$title: Title object
 1286+&$pageLang: the page content language (either an object or a language code)
 1287+$wgLang: the user language
 1288+
12831289 'PageHistoryBeforeList': When a history page list is about to be constructed.
12841290 $article: the article that the history is loading for
12851291
Index: branches/REL1_18/phase3/includes/Title.php
@@ -4272,6 +4272,7 @@
42734273 * Defaults to $wgContLang, but in certain cases it can be e.g.
42744274 * $wgLang (such as special pages, which are in the user language).
42754275 *
 4276+ * @since 1.18
42764277 * @return object Language
42774278 */
42784279 public function getPageLanguage() {
Index: branches/REL1_18/phase3/languages/Language.php
@@ -218,6 +218,7 @@
219219 *
220220 * @param $code string
221221 *
 222+ * @since 1.18
222223 * @return bool
223224 */
224225 public static function isValidBuiltInCode( $code ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r94248Add 2 @since and add documentation for PageContentLanguage hookrobin14:52, 11 August 2011

Status & tagging log