diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-09-14 07:23:23 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-09-14 07:23:23 +0400 |
commit | e3bd0c0b9e8bd34efd27d31fe310602fcfc3a894 (patch) | |
tree | 9e8873a2410dedb65b3e725bf537d4781047b7b7 /core/Nonce.php | |
parent | 8d11a25fa7f41212584a58998c59884a4b9836d4 (diff) |
Moving piwik settings specific getters to SettingsPiwik class
Adding MetricsFormatter class which knows how to format/display metrics (time, money, size, etc)
Diffstat (limited to 'core/Nonce.php')
-rw-r--r-- | core/Nonce.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/Nonce.php b/core/Nonce.php index d7606854f9..136db339af 100644 --- a/core/Nonce.php +++ b/core/Nonce.php @@ -10,9 +10,7 @@ */ namespace Piwik; -use Piwik\Common; use Piwik\Session\SessionNamespace; -use Piwik\Url; /** * Nonce class. @@ -46,7 +44,7 @@ class Nonce // to handle browser pre-fetch or double fetch caused by some browser add-ons/extensions if (empty($nonce)) { // generate a new nonce - $nonce = md5(Common::getSalt() . time() . Common::generateUniqId()); + $nonce = md5(SettingsPiwik::getSalt() . time() . Common::generateUniqId()); $ns->nonce = $nonce; $ns->setExpirationSeconds($ttl, 'nonce'); } |