diff --git a/includes/SkinPHPTal.php b/includes/SkinPHPTal.php index 39dbe70edd8..301a14ce868 100644 --- a/includes/SkinPHPTal.php +++ b/includes/SkinPHPTal.php @@ -64,7 +64,7 @@ global $wgTitle, $wgArticle, $wgUser, $wgLang, $wgOut; global $wgScript, $wgStyleSheetPath, $wgLanguageCode, $wgUseNewInterlanguage; global $wgMimeType, $wgOutputEncoding, $wgUseDatabaseMessages, $wgRequest; - global $wgDisableCounters, $wgLogo, $action; + global $wgDisableCounters, $wgLogo, $action, $wgFeedClasses; extract( $wgRequest->getValues( 'oldid', 'diff' ) ); @@ -92,6 +92,17 @@ $tpl->setRef( "thispage", &$this->thispage ); $tpl->set( "subtitle", $out->getSubtitle() ); $tpl->set( 'catlinks', getCategories()); + if( $wgOut->isSyndicated() ) { + $feeds = array(); + foreach( $wgFeedClasses as $format => $class ) { + $feeds[$format] = array( + 'text' => $format, + 'href' => $wgRequest->escapeAppendQuery( "feed=$format" ), + 'ttip' => wfMsg('tooltip-'.$format) + ); + } + $tpl->setRef( 'feeds', &$feeds ); + } $tpl->setRef( 'mimetype', &$wgMimeType ); $tpl->setRef( 'charset', &$wgOutputEncoding ); $tpl->set( 'headlinks', $out->getHeadLinks() ); diff --git a/includes/SpecialPreferences.php b/includes/SpecialPreferences.php index dd17a05345d..ba649eaa49a 100644 --- a/includes/SpecialPreferences.php +++ b/includes/SpecialPreferences.php @@ -466,7 +466,8 @@ class PreferencesForm { $wgOut->addHTML( "