r99374 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99373‎ | r99374 | r99375 >
Date:20:12, 9 October 2011
Author:kaldari
Status:ok
Tags:
Comment:
fix for Bug 31557
Modified paths:
  • /trunk/extensions/WikiLove/WikiLove.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/WikiLove/WikiLove.hooks.php
@@ -175,6 +175,9 @@
176176
177177 // If we're on a subpage, get the base page title
178178 $baseTitle = Title::newFromText( $title->getBaseText(), $ns );
 179+ if ( $baseTitle === null ) {
 180+ return null;
 181+ }
179182
180183 // Get the user talk page
181184 if ( $ns == NS_USER_TALK ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r100464Bug 31866 - Wikilove causes fatal when viewing User:/ ( getTalkPage() on a no...reedy22:12, 21 October 2011

Status & tagging log