r82726 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82725‎ | r82726 | r82727 >
Date:15:25, 24 February 2011
Author:reedy
Status:ok
Tags:
Comment:
Make sure title exists as well as being valid
Modified paths:
  • /trunk/extensions/Narayam/Narayam.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Narayam/Narayam.php
@@ -153,7 +153,7 @@
154154
155155 $target = '';
156156
157 - if ( $title ) {
 157+ if ( $title && $title->exists() ) {
158158 $target = $title->getFullURL();
159159 }
160160

Status & tagging log