Instead of throwing fatals, accept null titles in old log entries.
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Wed, 14 Sep 2011 07:49:39 +0000 (07:49 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Wed, 14 Sep 2011 07:49:39 +0000 (07:49 +0000)
New log entries will still die with fatal few lines below, but that's good since that should never happen.

includes/logging/LogFormatter.php

index e13dbc9..d066047 100644 (file)
@@ -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 {