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/OneClickDone.php')
-rw-r--r--core/View/OneClickDone.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/core/View/OneClickDone.php b/core/View/OneClickDone.php
index cff974273b..6095efbae9 100644
--- a/core/View/OneClickDone.php
+++ b/core/View/OneClickDone.php
@@ -9,6 +9,8 @@
namespace Piwik\View;
+use Piwik\Common;
+
/**
* Post-update view
*
@@ -57,11 +59,11 @@ class OneClickDone
public function render()
{
// set response headers
- @header('Content-Type: text/html; charset=UTF-8');
- @header('Pragma: ');
- @header('Expires: ');
- @header('Cache-Control: must-revalidate');
- @header('X-Frame-Options: deny');
+ @Common::sendHeader('Content-Type: text/html; charset=UTF-8');
+ @Common::sendHeader('Pragma: ');
+ @Common::sendHeader('Expires: ');
+ @Common::sendHeader('Cache-Control: must-revalidate');
+ @Common::sendHeader('X-Frame-Options: deny');
$error = htmlspecialchars($this->error, ENT_QUOTES, 'UTF-8');
$messages = htmlspecialchars(serialize($this->feedbackMessages), ENT_QUOTES, 'UTF-8');