diff options
author | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-07-27 06:23:37 +0400 |
---|---|---|
committer | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-07-27 06:23:37 +0400 |
commit | fcb8d4c90a5616327cb8f60cc3969889e9aa94d2 (patch) | |
tree | 758a54c3f3be69971100916cef4aeaf30f0d1152 /plugins/UserSettings | |
parent | 5c81297e7a4c4bf848d61fabd50ffb6af1103e05 (diff) |
fix JSON stringify'd layout not completely decoded;
add defined(PIWIK_INCLUDE_PATH) before require_once per checklist
Diffstat (limited to 'plugins/UserSettings')
-rw-r--r-- | plugins/UserSettings/API.php | 3 | ||||
-rw-r--r-- | plugins/UserSettings/functions.php | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/plugins/UserSettings/API.php b/plugins/UserSettings/API.php index db5a52bdb6..2afa7ca2e1 100644 --- a/plugins/UserSettings/API.php +++ b/plugins/UserSettings/API.php @@ -9,6 +9,9 @@ * @package Piwik_UserSettings */ +// no direct access +defined('PIWIK_INCLUDE_PATH') or die('Restricted access'); + require_once PIWIK_INCLUDE_PATH . '/plugins/UserSettings/functions.php'; /** diff --git a/plugins/UserSettings/functions.php b/plugins/UserSettings/functions.php index 0389388e05..bc097d17ae 100644 --- a/plugins/UserSettings/functions.php +++ b/plugins/UserSettings/functions.php @@ -9,6 +9,9 @@ * @package Piwik_UserSettings */ +// no direct access +defined('PIWIK_INCLUDE_PATH') or die('Restricted access'); + require_once PIWIK_INCLUDE_PATH . '/libs/UserAgentParser/UserAgentParser.php'; function Piwik_getPluginsLogo( $oldLabel ) |