}
function edit() {
- global $wgUser, $wgOut, $wgScript, $wgScriptPath, $wgServer;
+ global $wgUser, $wgOut, $wgScript, $wgScriptPath, $wgServer,
+ $wgLang;
$wgOut->disable();
$name=$this->mTitle->getText();
$pos=strrpos($name,".")+1;
} elseif($this->mMode=="file") {
$type="Edit file";
$image = Image::newFromTitle( $this->mTitle );
- $url = $wgServer . $image->getURL();
+ $img_url = $image->getURL();
+ if(strpos($img_url,"://")) {
+ $url = $img_url;
+ } else {
+ $url = $wgServer . $img_url;
+ }
$extension=substr($name, $pos);
- }
+ }
+ $special=$wgLang->getNsText(NS_SPECIAL);
$control = <<<CONTROL
[Process]
Type=$type
Script={$wgServer}{$wgScript}
Server={$wgServer}
Path={$wgScriptPath}
+Special namespace=$special
[File]
Extension=$extension