diff options
author | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-08-11 18:26:55 +0400 |
---|---|---|
committer | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-08-11 18:26:55 +0400 |
commit | 9d215e8789a34c544319258e8b271bd146c899e3 (patch) | |
tree | 4ba2a404fff6142442e3db3023a869b4ef705b61 /plugins/UserSettings | |
parent | 2ee8f6fe79a797c389c32cfb30a69b5199625d19 (diff) |
Change die('Restricted access') to simply die.
With error_reporting(E_ALL|E_NOTICE) it prints nothing and is more consistent with directly accessing other Piwik php files.
Diffstat (limited to 'plugins/UserSettings')
-rw-r--r-- | plugins/UserSettings/API.php | 2 | ||||
-rw-r--r-- | plugins/UserSettings/functions.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/UserSettings/API.php b/plugins/UserSettings/API.php index 2afa7ca2e1..1ec5a05e1b 100644 --- a/plugins/UserSettings/API.php +++ b/plugins/UserSettings/API.php @@ -10,7 +10,7 @@ */ // no direct access -defined('PIWIK_INCLUDE_PATH') or die('Restricted access'); +defined('PIWIK_INCLUDE_PATH') or die; require_once PIWIK_INCLUDE_PATH . '/plugins/UserSettings/functions.php'; diff --git a/plugins/UserSettings/functions.php b/plugins/UserSettings/functions.php index bc097d17ae..275c543bc7 100644 --- a/plugins/UserSettings/functions.php +++ b/plugins/UserSettings/functions.php @@ -10,7 +10,7 @@ */ // no direct access -defined('PIWIK_INCLUDE_PATH') or die('Restricted access'); +defined('PIWIK_INCLUDE_PATH') or die; require_once PIWIK_INCLUDE_PATH . '/libs/UserAgentParser/UserAgentParser.php'; |