r14927 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r14926‎ | r14927 | r14928 >
Date:06:53, 23 June 2006
Author:tstarling
Status:old
Tags:
Comment:
Check for bad title in returnToMain()
Modified paths:
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -920,6 +920,9 @@
921921 } else {
922922 $titleObj = Title::newFromText( $returnto );
923923 }
 924+ if ( !is_object( $titleObj ) ) {
 925+ $titleObj = Title::newMainPage();
 926+ }
924927
925928 $sk = $wgUser->getSkin();
926929 $link = $sk->makeLinkObj( $titleObj, '' );

Status & tagging log