From: Siebrand Mazeland Date: Tue, 8 Oct 2013 16:08:00 +0000 (+0200) Subject: Remove unused local variable X-Git-Tag: 1.31.0-rc.0~18560 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/message.php?a=commitdiff_plain;h=751e70d1f8456ea5515b2722b48ddbfbad179bd2;p=lhc%2Fweb%2Fwiklou.git Remove unused local variable Change-Id: I93ce25fe158f7a82ade102953d6a2453620b7e0e --- diff --git a/includes/installer/WebInstallerOutput.php b/includes/installer/WebInstallerOutput.php index 79dc80fe5b..1df8f05095 100644 --- a/includes/installer/WebInstallerOutput.php +++ b/includes/installer/WebInstallerOutput.php @@ -218,12 +218,12 @@ class WebInstallerOutput { public function outputHeader() { $this->headerDone = true; - $dbTypes = $this->parent->getDBTypes(); - $this->parent->request->response()->header( 'Content-Type: text/html; charset=utf-8' ); + if ( !$this->allowFrames ) { $this->parent->request->response()->header( 'X-Frame-Options: DENY' ); } + if ( $this->redirectTarget ) { $this->parent->request->response()->header( 'Location: ' . $this->redirectTarget );