From 751e70d1f8456ea5515b2722b48ddbfbad179bd2 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Tue, 8 Oct 2013 18:08:00 +0200 Subject: [PATCH] Remove unused local variable Change-Id: I93ce25fe158f7a82ade102953d6a2453620b7e0e --- includes/installer/WebInstallerOutput.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.20.1