diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-06-12 08:46:26 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-06-12 08:46:26 +0400 |
commit | 54ee416790f04fca83b8521837ca049aac55c6fd (patch) | |
tree | ae46d559edab3108bf6689c103a8c87460d69fbd /core/Plugin/ControllerAdmin.php | |
parent | fad4acb1e92339c0fbd1ba221791459d4a9f910d (diff) |
Factoring out the userPreferences in own object to allow reuse
Diffstat (limited to 'core/Plugin/ControllerAdmin.php')
-rw-r--r-- | core/Plugin/ControllerAdmin.php | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/core/Plugin/ControllerAdmin.php b/core/Plugin/ControllerAdmin.php index 2e39b7f852..4254cdbb2c 100644 --- a/core/Plugin/ControllerAdmin.php +++ b/core/Plugin/ControllerAdmin.php @@ -206,13 +206,4 @@ abstract class ControllerAdmin extends Controller $view->phpVersion = PHP_VERSION; $view->phpIsNewEnough = version_compare($view->phpVersion, '5.3.0', '>='); } - - protected function getDefaultWebsiteId() - { - $sitesId = \Piwik\Plugins\SitesManager\API::getInstance()->getSitesIdWithAdminAccess(); - if (!empty($sitesId)) { - return $sitesId[0]; - } - return parent::getDefaultWebsiteId(); - } } |