}
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;
$image = Image::newFromTitle( $this->mTitle );
$url = $wgServer . $image->getURL();
$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