diff options
author | sgiehl <stefan@piwik.org> | 2015-10-28 00:48:07 +0300 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2015-10-28 00:48:07 +0300 |
commit | 4251fad091e917c06a070797bd50506827ffbe6c (patch) | |
tree | d564f19904970c0141258f375a8a76a540558e8c /plugins/LanguagesManager | |
parent | 43f9d6d0f80545f4d4a72eb91034c4bf7abaa25d (diff) |
don't directly access the API
Diffstat (limited to 'plugins/LanguagesManager')
-rw-r--r-- | plugins/LanguagesManager/LanguagesManager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/LanguagesManager/LanguagesManager.php b/plugins/LanguagesManager/LanguagesManager.php index 70444c15c8..2a468d550a 100644 --- a/plugins/LanguagesManager/LanguagesManager.php +++ b/plugins/LanguagesManager/LanguagesManager.php @@ -10,6 +10,7 @@ namespace Piwik\Plugins\LanguagesManager; use Exception; +use Piwik\API\Request; use Piwik\Common; use Piwik\Config; use Piwik\Container\StaticContainer; @@ -144,7 +145,7 @@ class LanguagesManager extends \Piwik\Plugin { try { $currentUser = Piwik::getCurrentUserLogin(); - return API::getInstance()->uses12HourClockForUser($currentUser); + return Request::processRequest('LanguagesManager.uses12HourClockForUser', array('login' => $currentUser)); } catch (Exception $e) { return false; } |