diff options
author | KyleK <kylekatarnls@gmail.com> | 2014-09-14 16:18:01 +0400 |
---|---|---|
committer | KyleK <kylekatarnls@gmail.com> | 2014-09-14 16:18:01 +0400 |
commit | a9fb8c7b89def45a3754fb383ce3e76488ed7156 (patch) | |
tree | f5d0e22bc8698294367c356db2ee1cc1e12eef48 /core/BaseFactory.php | |
parent | 37599df8123f7f2678b55c42b139d619c0a4d3b9 (diff) |
Replace header() with Common::sendHeader() when possible
Diffstat (limited to 'core/BaseFactory.php')
-rw-r--r-- | core/BaseFactory.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/BaseFactory.php b/core/BaseFactory.php index e24b6dfc02..6f09f952ef 100644 --- a/core/BaseFactory.php +++ b/core/BaseFactory.php @@ -9,6 +9,7 @@ namespace Piwik; use Exception; +use Piwik\Common; /** * Base class for all factory types. @@ -34,7 +35,7 @@ abstract class BaseFactory $className = static::getClassNameFromClassId($classId); if (!class_exists($className)) { - @header('Content-Type: text/plain; charset=utf-8'); + Common::sendHeader('Content-Type: text/plain; charset=utf-8'); throw new Exception(static::getInvalidClassIdExceptionMessage($classId)); } |