diff options
author | mattab <matthieu.aubry@gmail.com> | 2016-05-23 05:07:59 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2016-05-23 05:11:13 +0300 |
commit | b7ab87a319ab95bfb54f0b0232a45094dfb32c2e (patch) | |
tree | 86e2cf1935fef0a618f23bf32df4905bd1adc94b /plugins/SitesManager/Controller.php | |
parent | d8db39bb3d10c3884f8bff1c61b3119fdb3102b3 (diff) |
Use Common::sendHeader for consistency
Diffstat (limited to 'plugins/SitesManager/Controller.php')
-rw-r--r-- | plugins/SitesManager/Controller.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SitesManager/Controller.php b/plugins/SitesManager/Controller.php index d64fb45fa9..2a033e295e 100644 --- a/plugins/SitesManager/Controller.php +++ b/plugins/SitesManager/Controller.php @@ -139,8 +139,8 @@ class Controller extends \Piwik\Plugin\ControllerAdmin { $path = PIWIK_INCLUDE_PATH . '/libs/PiwikTracker/'; $filename = 'PiwikTracker.php'; - header('Content-type: text/php'); - header('Content-Disposition: attachment; filename="' . $filename . '"'); + Common::sendHeader('Content-type: text/php'); + Common::sendHeader('Content-Disposition: attachment; filename="' . $filename . '"'); return file_get_contents($path . $filename); } |