/**
* Contain a feed class as well as classes to build rss / atom ... feeds
+ * Available feeds are defined in Defines.php
* @package MediaWiki
*/
-/**
- * Available feeds objects
- */
-$wgFeedClasses = array(
- 'rss' => 'RSSFeed',
- 'atom' => 'AtomFeed',
- );
/**
* @todo document
* @todo document
*/
function xmlEncode( $string ) {
- global $wgInputEncoding, $wgLang;
+ global $wgInputEncoding, $wgContLang;
$string = str_replace( "\r\n", "\n", $string );
if( strcasecmp( $wgInputEncoding, 'utf-8' ) != 0 ) {
- $string = $wgLang->iconv( $wgInputEncoding, 'utf-8', $string );
+ $string = $wgContLang->iconv( $wgInputEncoding, 'utf-8', $string );
}
return htmlspecialchars( $string );
}
* @todo document
*/
function getLanguage() {
- global $wgLanguageCode;
- return $wgLanguageCode;
+ global $wgContLanguageCode;
+ return $wgContLanguageCode;
}
/**
* @todo document