diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-07-15 04:10:00 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-07-15 05:50:47 +0400 |
commit | b36f5c6ebb452c3773192130b907287d263b4788 (patch) | |
tree | d2671993c77dffe8f3e6828085379b853ce98f2b /core | |
parent | ab1eb4e03a9a8c5183e340ea2e33bdfe4d196f17 (diff) |
Refactor template assignment of top menu + isFileWritable()
Diffstat (limited to 'core')
-rw-r--r-- | core/Controller/Admin.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/Controller/Admin.php b/core/Controller/Admin.php index a2b1cbffcb..35dbbd4780 100644 --- a/core/Controller/Admin.php +++ b/core/Controller/Admin.php @@ -29,7 +29,12 @@ abstract class Piwik_Controller_Admin extends Piwik_Controller self::setBasicVariablesAdminView($view); } - static public function setBasicVariablesAdminView($view) + static public function displayWarningIfConfigFileNotWritable(Piwik_View $view ) + { + $view->configFileNotWritable = !Piwik_Config::getInstance()->isFileWritable(); + } + + static public function setBasicVariablesAdminView(Piwik_View $view) { $statsEnabled = Piwik_Config::getInstance()->Tracker['record_statistics']; if ($statsEnabled == "0") { @@ -63,6 +68,8 @@ abstract class Piwik_Controller_Admin extends Piwik_Controller } self::checkPhpVersion($view); + + $view->menu = Piwik_GetAdminMenu(); } /** |