Skip to content

Commit

Permalink
Dev: Fix header in statistics view
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Feb 23, 2018
1 parent 37ac015 commit 7787deb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions application/core/Survey_Common_Action.php
Expand Up @@ -395,11 +395,13 @@ private function _nsurveysummary($aData)
* Header
* @param array $aData
*/
private function _showHeaders($aData)
private function _showHeaders($aData, $sendHTTPHeader = true)
{
if (!isset($aData['display']['header']) || $aData['display']['header'] !== false) {
// Send HTTP header
header("Content-type: text/html; charset=UTF-8"); // needed for correct UTF-8 encoding
if ($sendHTTPHeader) {
header("Content-type: text/html; charset=UTF-8"); // needed for correct UTF-8 encoding
}
Yii::app()->getController()->_getAdminHeader();
}
}
Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/super/layout_insurvey.php
Expand Up @@ -3,7 +3,7 @@
//All paths relative from /application/views

//headers will be generated with the template file /admin/super/header.php
$this->_showHeaders($aData);
$this->_showHeaders($aData, false);
//The adminmenu bar will be generated from /admin/super/adminmenu.php
$this->_showadminmenu($aData);

Expand Down

0 comments on commit 7787deb

Please sign in to comment.