handle Special: namespaces in multiple languages

This commit is contained in:
Erik Moeller 2005-04-13 06:57:31 +00:00
parent 2fc949120d
commit 90586917b2

View file

@ -31,7 +31,8 @@ class ExternalEdit {
}
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;
@ -51,7 +52,8 @@ class ExternalEdit {
$image = Image::newFromTitle( $this->mTitle );
$url = $wgServer . $image->getURL();
$extension=substr($name, $pos);
}
}
$special=$wgLang->getNsText(NS_SPECIAL);
$control = <<<CONTROL
[Process]
Type=$type
@ -59,6 +61,7 @@ Engine=MediaWiki
Script={$wgServer}{$wgScript}
Server={$wgServer}
Path={$wgScriptPath}
Special namespace=$special
[File]
Extension=$extension