Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-07-31 20:46:40 +0400
committermattab <matthieu.aubry@gmail.com>2013-07-31 20:46:40 +0400
commit11752942f0e6526a0d254af2bb2b101491238f29 (patch)
treeb3434b12326b5d84b42312c546c7ec4ee13ab10e /core/Nonce.php
parentd9d4598084aa51d95bf3eab0e961d3c27161cbb8 (diff)
Refs #3741 PHP Namespace conversion continued: Tracker classes,
renaming Unzip to Uncompress, Renaming Tracker/Referer to Tracker/Referrer, and few more
Diffstat (limited to 'core/Nonce.php')
-rw-r--r--core/Nonce.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/core/Nonce.php b/core/Nonce.php
index ff6a97227b..8f876b1890 100644
--- a/core/Nonce.php
+++ b/core/Nonce.php
@@ -11,9 +11,8 @@
namespace Piwik;
use Piwik\Common;
-use Piwik_Session_Namespace;
+use Piwik\Session\SessionNamespace;
use Piwik\Url;
-use false;
/**
* Nonce class.
@@ -40,7 +39,7 @@ class Nonce
static public function getNonce($id, $ttl = 300)
{
// save session-dependent nonce
- $ns = new Piwik_Session_Namespace($id);
+ $ns = new SessionNamespace($id);
$nonce = $ns->nonce;
// re-use an unexpired nonce (a small deviation from the "used only once" principle, so long as we do not reset the expiration)
@@ -64,7 +63,7 @@ class Nonce
*/
static public function verifyNonce($id, $cnonce)
{
- $ns = new Piwik_Session_Namespace($id);
+ $ns = new SessionNamespace($id);
$nonce = $ns->nonce;
// validate token
@@ -97,7 +96,7 @@ class Nonce
*/
static public function discardNonce($id)
{
- $ns = new Piwik_Session_Namespace($id);
+ $ns = new SessionNamespace($id);
$ns->unsetAll();
}