r97291 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97290‎ | r97291 | r97292 >
Date:15:21, 16 September 2011
Author:demon
Status:ok
Tags:
Comment:
Don't attempt to get a request url from a FauxRequest
Modified paths:
  • /trunk/phase3/includes/Exception.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Exception.php
@@ -150,7 +150,7 @@
151151 $line = $this->getLine();
152152 $message = $this->getMessage();
153153
154 - if ( isset( $wgRequest ) ) {
 154+ if ( isset( $wgRequest ) && !$wgRequest instanceof FauxRequest ) {
155155 $url = $wgRequest->getRequestURL();
156156 if ( !$url ) {
157157 $url = '[no URL]';

Follow-up revisions

RevisionCommit summaryAuthorDate
r98978MFT r97291reedy02:44, 5 October 2011
r100490REL1_18 MFT r97291, r98678reedy02:34, 22 October 2011

Status & tagging log