r90449 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90448‎ | r90449 | r90450 >
Date:08:52, 20 June 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
Catch invalid titles
Modified paths:
  • /trunk/extensions/Translate/tag/SpecialPageTranslationDeletePage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/tag/SpecialPageTranslationDeletePage.php
@@ -116,6 +116,11 @@
117117 return;
118118 }
119119
 120+ if ( $this->title === null ) {
 121+ $wgOut->showErrorPage( 'notargettitle', 'notargettext' );
 122+ return;
 123+ }
 124+
120125 if ( !$this->title->exists() ) {
121126 $wgOut->showErrorPage( 'nopagetitle', 'nopagetext' );
122127 return;

Status & tagging log