From 69eb4e23d6c414a5a069c2e50ff33a912c7e57df Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Fri, 16 Sep 2011 15:21:06 +0000 Subject: [PATCH] Don't attempt to get a request url from a FauxRequest --- includes/Exception.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Exception.php b/includes/Exception.php index f380d5d0b4..fb5f0ffa21 100644 --- a/includes/Exception.php +++ b/includes/Exception.php @@ -150,7 +150,7 @@ class MWException extends Exception { $line = $this->getLine(); $message = $this->getMessage(); - if ( isset( $wgRequest ) ) { + if ( isset( $wgRequest ) && !$wgRequest instanceof FauxRequest ) { $url = $wgRequest->getRequestURL(); if ( !$url ) { $url = '[no URL]'; -- 2.20.1