From: Domas Mituzas Date: Sun, 13 Jan 2008 12:29:43 +0000 (+0000) Subject: avoid calling things on $wgTitle that might be not yet initialized X-Git-Tag: 1.31.0-rc.0~50031 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=b3473c453808ec6505b6fe03ba30fa14ce1d7f3e;p=lhc%2Fweb%2Fwiklou.git avoid calling things on $wgTitle that might be not yet initialized --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 7c5af28472..a0f3fca6ca 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -825,9 +825,9 @@ class OutputPage { */ public function showErrorPage( $title, $msg, $params = array() ) { global $wgTitle; - - $this->mDebugtext .= 'Original title: ' . - $wgTitle->getPrefixedText() . "\n"; + if ( isset($wgTitle) ) { + $this->mDebugtext .= 'Original title: ' . $wgTitle->getPrefixedText() . "\n"; + } $this->setPageTitle( wfMsg( $title ) ); $this->setHTMLTitle( wfMsg( 'errorpagetitle' ) ); $this->setRobotpolicy( 'noindex,nofollow' );