Image deletion was popping up the special image deletion form for the target image, which isn't friendly for redirects. :)
Now checking for redirect state as well as non-localness and non-existence, and pop up the regular page delete form for this.
even if the wiki's overall content language is not Korean
* (bug 12773) addOnloadHook() now calls functions immediately when scripts are
loaded after the primary page completion, instead of dropping them
+* (bug 14199) Fix deletion form for image redirect pages
=== API changes in 1.13 ===
*/
public function delete() {
$this->loadFile();
- if( !$this->img->exists() || !$this->img->isLocal() ) {
+ if( !$this->img->exists() || !$this->img->isLocal() || $this->img->getRedirected() ) {
// Standard article deletion
Article::delete();
return;