German localisation updates, patch by ray.
[lhc/web/wiklou.git] / includes / Feed.php
index 03cda1a..512057d 100644 (file)
@@ -146,17 +146,13 @@ class ChannelFeed extends FeedItem {
         * @private
         */
        function outXmlHeader() {
-               global $wgServer, $wgStylePath, $wgStyleVersion;
-               if( substr( $wgStylePath, 0, 1 ) == '/' ) {
-                       $stylePath = $wgServer . $wgStylePath;
-               } else {
-                       $stylePath = $wgStylePath;
-               }
+               global $wgStylePath, $wgStyleVersion;
 
                $this->httpHeaders();
                echo '<?xml version="1.0" encoding="utf-8"?>' . "\n";
                echo '<?xml-stylesheet type="text/css" href="' .
-                       htmlspecialchars( "$stylePath/common/feed.css?$wgStyleVersion" ) . '"?' . ">\n";
+                       htmlspecialchars( wfExpandUrl( "$wgStylePath/common/feed.css?$wgStyleVersion" ) ) .
+                       '"?' . ">\n";
        }
 }
 
@@ -304,5 +300,3 @@ class AtomFeed extends ChannelFeed {
        </feed><?php
        }
 }
-
-?>