Show path to the php.ini on the wizard's requirements page

refs #7839
This commit is contained in:
Johannes Meyer 2014-11-26 10:38:39 +01:00
parent e82cc35043
commit d25a3a1704
1 changed files with 4 additions and 1 deletions

View File

@ -386,7 +386,10 @@ class WebWizard extends Wizard implements SetupWizard
$defaultTimezone = Platform::getPhpConfig('date.timezone'); $defaultTimezone = Platform::getPhpConfig('date.timezone');
$requirements->addMandatory( $requirements->addMandatory(
mt('setup', 'Default Timezone'), mt('setup', 'Default Timezone'),
mt('setup', 'It is required that a default timezone has been set using date.timezone in php.ini.'), sprintf(
mt('setup', 'It is required that a default timezone has been set using date.timezone in %s.'),
php_ini_loaded_file() ?: 'php.ini'
),
$defaultTimezone, $defaultTimezone,
$defaultTimezone ? sprintf(mt('setup', 'Your default timezone is: %s'), $defaultTimezone) : ( $defaultTimezone ? sprintf(mt('setup', 'Your default timezone is: %s'), $defaultTimezone) : (
mt('setup', 'You did not define a default timezone.') mt('setup', 'You did not define a default timezone.')