handle Special: namespaces in multiple languages
This commit is contained in:
parent
2fc949120d
commit
90586917b2
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue