From 827f08f6eedd41f3bbc133740c1ab31f5d4e9fee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Wed, 14 Sep 2011 07:49:39 +0000 Subject: [PATCH] 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. --- includes/logging/LogFormatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.20.1