From: Ævar Arnfjörð Bjarmason Date: Sat, 26 Mar 2005 17:19:39 +0000 (+0000) Subject: This is probably what eloquenc meant to do ( at least it fixes that fatal error) X-Git-Tag: 1.5.0alpha1~510 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=94e06f20a5fe16b9548c42a9dbdf87dbc88cc14d;p=lhc%2Fweb%2Fwiklou.git This is probably what eloquenc meant to do ( at least it fixes that fatal error) --- diff --git a/includes/ExternalEdit.php b/includes/ExternalEdit.php index 2a27ce5d2b..920fc9cbba 100644 --- a/includes/ExternalEdit.php +++ b/includes/ExternalEdit.php @@ -44,11 +44,12 @@ class ExternalEdit { $extension="wiki"; } elseif($this->mMode=="file") { $type="Edit file"; - $url=$wgServer . Image::newFromTitle( $this->mTitle )->getURL(); + $url = Image::newFromTitle( $this->mTitle ); + $url = $url->url; # php sucks + $extension=substr($name, $pos); } - $control= -" + $control=" [Process] Type=$type Engine=MediaWiki @@ -58,8 +59,6 @@ Script={$wgServer}{$wgScript} Extension=$extension URL=$url"; echo $control; - - } } ?>