From: River Tarnell Date: Sun, 3 Jul 2005 08:17:18 +0000 (+0000) Subject: don't make apache cry X-Git-Tag: 1.5.0beta2~50 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=b1aa6a1ca637a9e4a15f17fd85ecfb73bbc57ec5;p=lhc%2Fweb%2Fwiklou.git don't make apache cry --- diff --git a/includes/Title.php b/includes/Title.php index 9345471ca6..14291caad0 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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; } /**