don't make apache cry
authorRiver Tarnell <kateturner@users.mediawiki.org>
Sun, 3 Jul 2005 08:17:18 +0000 (08:17 +0000)
committerRiver Tarnell <kateturner@users.mediawiki.org>
Sun, 3 Jul 2005 08:17:18 +0000 (08:17 +0000)
includes/Title.php

index 9345471..14291ca 100644 (file)
@@ -731,7 +731,7 @@ class Title {
        function getLocalURL( $query = '' ) {
                global $wgLang, $wgArticlePath, $wgScript, $wgMakeDumpLinks, $action;
 
-               if ( $this->isExternal() || $action == 'render' ) {
+               if ( $this->isExternal() ) {
                        return $this->getFullURL();
                }
 
@@ -758,7 +758,11 @@ class Title {
                        }
                        $url = "{$wgScript}?title={$dbkey}&{$query}";
                }
-               return $url;
+
+               if ($action == 'render')
+                       return $wgServer . $url;
+               else
+                       return $url;
        }
 
        /**