Skip to content
Extraits de code Groupes Projets
Valider 442dbd2f rédigé par mattpiwik's avatar mattpiwik
Parcourir les fichiers

Refs #1153 adding warnign for general settings screen as SMTP config requires config file writable

git-svn-id: http://dev.piwik.org/svn/trunk@2664 59fd770c-687e-43c8-a1e3-f5a4ff64c105
parent 15882b57
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -161,7 +161,7 @@ $translations = array( ...@@ -161,7 +161,7 @@ $translations = array(
'General_LongDay_5' => 'Friday', 'General_LongDay_5' => 'Friday',
'General_LongDay_6' => 'Saturday', 'General_LongDay_6' => 'Saturday',
'General_LongDay_7' => 'Sunday', 'General_LongDay_7' => 'Sunday',
'General_ConfigFileIsNotWritable' => 'The Piwik configuration file %s is not writable, your changes will not be saved. %s Please change permissions of the config file to make it writable.', 'General_ConfigFileIsNotWritable' => 'The Piwik configuration file %s is not writable, some of your changes might not be saved. %s Please change permissions of the config file to make it writable.',
'General_ExceptionDatabaseVersion' => 'Your %1$s version is %2$s but Piwik requires at least %3$s.', 'General_ExceptionDatabaseVersion' => 'Your %1$s version is %2$s but Piwik requires at least %3$s.',
'General_ExceptionIncompatibleClientServerVersions' => 'Your %1$s client version is %2$s which is incompatible with server version %3$s.', 'General_ExceptionIncompatibleClientServerVersions' => 'Your %1$s client version is %2$s which is incompatible with server version %3$s.',
'General_ExceptionMissingFile' => 'Missing file: %s', 'General_ExceptionMissingFile' => 'Missing file: %s',
......
...@@ -36,6 +36,11 @@ class Piwik_CoreAdminHome_Controller extends Piwik_Controller ...@@ -36,6 +36,11 @@ class Piwik_CoreAdminHome_Controller extends Piwik_Controller
$view->todayArchiveTimeToLive = $todayArchiveTimeToLive; $view->todayArchiveTimeToLive = $todayArchiveTimeToLive;
$view->enableBrowserTriggerArchiving = $enableBrowserTriggerArchiving; $view->enableBrowserTriggerArchiving = $enableBrowserTriggerArchiving;
if(!Zend_Registry::get('config')->isFileWritable())
{
$view->configFileNotWritable = true;
}
$view->mail = Zend_Registry::get('config')->mail->toArray(); $view->mail = Zend_Registry::get('config')->mail->toArray();
$this->setBasicVariablesView($view); $this->setBasicVariablesView($view);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter