http://www.mediawiki.org/wiki/Special:Code/MediaWiki/94250
Revision: 94250
Author: robin
Date: 2011-08-11 15:14:55 +0000 (Thu, 11 Aug 2011)
Log Message:
-----------
merge r94248 (documentation relevant to 1.18)
Modified Paths:
--------------
branches/REL1_18/phase3/docs/hooks.txt
branches/REL1_18/phase3/includes/Title.php
branches/REL1_18/phase3/languages/Language.php
Modified: branches/REL1_18/phase3/docs/hooks.txt
===================================================================
--- branches/REL1_18/phase3/docs/hooks.txt 2011-08-11 15:00:32 UTC (rev
94249)
+++ branches/REL1_18/phase3/docs/hooks.txt 2011-08-11 15:14:55 UTC (rev
94250)
@@ -1279,6 +1279,12 @@
$links: array, intended to hold the result. Must be an associative array with
category types as keys and arrays of HTML links as values.
+'PageContentLanguage': allows changing the language in which the content of
+a page is written. Defaults to the wiki content language ($wgContLang).
+$title: Title object
+&$pageLang: the page content language (either an object or a language code)
+$wgLang: the user language
+
'PageHistoryBeforeList': When a history page list is about to be constructed.
$article: the article that the history is loading for
Modified: branches/REL1_18/phase3/includes/Title.php
===================================================================
--- branches/REL1_18/phase3/includes/Title.php 2011-08-11 15:00:32 UTC (rev
94249)
+++ branches/REL1_18/phase3/includes/Title.php 2011-08-11 15:14:55 UTC (rev
94250)
@@ -4272,6 +4272,7 @@
* Defaults to $wgContLang, but in certain cases it can be e.g.
* $wgLang (such as special pages, which are in the user language).
*
+ * @since 1.18
* @return object Language
*/
public function getPageLanguage() {
Modified: branches/REL1_18/phase3/languages/Language.php
===================================================================
--- branches/REL1_18/phase3/languages/Language.php 2011-08-11 15:00:32 UTC
(rev 94249)
+++ branches/REL1_18/phase3/languages/Language.php 2011-08-11 15:14:55 UTC
(rev 94250)
@@ -218,6 +218,7 @@
*
* @param $code string
*
+ * @since 1.18
* @return bool
*/
public static function isValidBuiltInCode( $code ) {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs