Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/View.php')
-rw-r--r--core/View.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/View.php b/core/View.php
index c62c0eed78..bc02e4c792 100644
--- a/core/View.php
+++ b/core/View.php
@@ -9,8 +9,12 @@
namespace Piwik;
use Exception;
+use Piwik\Access;
use Piwik\AssetManager\UIAssetCacheBuster;
+use Piwik\Common;
use Piwik\Plugins\UsersManager\API as APIUsersManager;
+use Piwik\SettingsPiwik;
+use Piwik\Version;
use Piwik\View\ViewInterface;
use Twig_Environment;
@@ -246,9 +250,9 @@ class View implements ViewInterface
ProxyHttp::overrideCacheControlHeaders('no-store');
- @header('Content-Type: ' . $this->contentType);
+ Common::sendHeader('Content-Type: ' . $this->contentType);
// always sending this header, sometimes empty, to ensure that Dashboard embed loads (which could call this header() multiple times, the last one will prevail)
- @header('X-Frame-Options: ' . (string)$this->xFrameOptions);
+ Common::sendHeader('X-Frame-Options: ' . (string)$this->xFrameOptions);
return $this->renderTwigTemplate();
}