Index: trunk/phase3/includes/logging/LogFormatter.php |
— | — | @@ -211,6 +211,9 @@ |
212 | 212 | if ( !$this->plaintext ) { |
213 | 213 | $link = Linker::link( $title, null, array(), $parameters ); |
214 | 214 | } else { |
| 215 | + if ( !$title instanceof Title ) { |
| 216 | + throw new MWException( "Expected title, got null" ); |
| 217 | + } |
215 | 218 | $link = '[[' . $title->getPrefixedText() . ']]'; |
216 | 219 | } |
217 | 220 | return $link; |