From: Niklas Laxström Date: Wed, 14 Sep 2011 07:49:39 +0000 (+0000) Subject: Instead of throwing fatals, accept null titles in old log entries. X-Git-Tag: 1.31.0-rc.0~27682 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=827f08f6eedd41f3bbc133740c1ab31f5d4e9fee;p=lhc%2Fweb%2Fwiklou.git Instead of throwing fatals, accept null titles in old log entries. New log entries will still die with fatal few lines below, but that's good since that should never happen. --- diff --git a/includes/logging/LogFormatter.php b/includes/logging/LogFormatter.php index e13dbc9f02..d066047010 100644 --- a/includes/logging/LogFormatter.php +++ b/includes/logging/LogFormatter.php @@ -203,7 +203,7 @@ class LogFormatter { * @param $parameters array query parameters * @return String */ - protected function makePageLink( Title $title, $parameters = array() ) { + protected function makePageLink( Title $title = null, $parameters = array() ) { if ( !$this->plaintext ) { $link = Linker::link( $title, null, array(), $parameters ); } else {