summaryrefslogtreecommitdiff
path: root/includes/Exception.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2007-01-24 09:26:41 +0000
committerPierre Schmitz <pierre@archlinux.de>2007-01-24 09:26:41 +0000
commitb6c19d49965caece085e7ee0da9c619b14f19655 (patch)
tree60c57c2a5035d5078fcc417e969f05cc8589f8ab /includes/Exception.php
parent3cbab0f9c75400197f64677945b7d8c45de85d06 (diff)
Aktualisierung auf MediaWiki 1.9.1
Diffstat (limited to 'includes/Exception.php')
-rw-r--r--includes/Exception.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/Exception.php b/includes/Exception.php
index ac9c8a21..ad7ec14a 100644
--- a/includes/Exception.php
+++ b/includes/Exception.php
@@ -54,10 +54,11 @@ class MWException extends Exception
}
function getLogMessage() {
+ global $wgRequest;
$file = $this->getFile();
$line = $this->getLine();
$message = $this->getMessage();
- return "{$_SERVER['REQUEST_URI']} Exception from line $line of $file: $message";
+ return $wgRequest->getRequestURL() . " Exception from line $line of $file: $message";
}
function reportHTML() {