From: <ro...@us...> - 2012-03-04 01:42:23
|
Revision: 72 http://wm-incubator.svn.sourceforge.net/wm-incubator/?rev=72&view=rev Author: robin-p Date: 2012-03-04 01:42:17 +0000 (Sun, 04 Mar 2012) Log Message: ----------- pass any xyz in Wp/xyz as a page content language (for the lang attribute) Modified Paths: -------------- trunk/IncubatorTest.php Modified: trunk/IncubatorTest.php =================================================================== --- trunk/IncubatorTest.php 2012-02-19 22:26:27 UTC (rev 71) +++ trunk/IncubatorTest.php 2012-03-04 01:42:17 UTC (rev 72) @@ -703,7 +703,8 @@ static function onPageContentLanguage( $title, &$pageLang, $wgLang ) { $prefix = self::analyzePrefix( $title, /* onlyInfoPage*/ false ); if( !$prefix['error'] ) { # valid prefixed title - $pageLang = self::isValidPrefix( $title ) ? $wgLang : $prefix['lang']; + $pageLang = self::isValidPrefix( $title ) ? + $wgLang : Language::factory( $prefix['lang'] ); } return true; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |