Fix warning text
This commit is contained in:
parent
b7a2b6b352
commit
6e4e2c4a82
|
@ -245,11 +245,6 @@ class ConfigFileManager
|
||||||
{
|
{
|
||||||
$filename = $this->configDir . '/' . self::CONFIG_DATA_FILE;
|
$filename = $this->configDir . '/' . self::CONFIG_DATA_FILE;
|
||||||
|
|
||||||
// fail at a early stage, if we already know that we cannot save the data
|
|
||||||
if (!$this->dataIsWritable()) {
|
|
||||||
throw new ConfigFileException(sprintf('Cannot open file "%s" in mode c+', $filename));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (file_exists($filename)) {
|
if (file_exists($filename)) {
|
||||||
$fileExists = true;
|
$fileExists = true;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -116,7 +116,7 @@ class Summary extends BaseAdmin
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!DI::configFileManager()->dataIsWritable()) {
|
if (!DI::configFileManager()->dataIsWritable()) {
|
||||||
$warningtext[] = DI::l10n()->t('Friendica\'s configuration store "%s" isn\'t writable. Until then database updates won't be applied automatically, admin settings and console configuration changes won't be saved.', ConfigFileManager::CONFIG_DATA_FILE);
|
$warningtext[] = DI::l10n()->t('Friendica\'s configuration store "%s" isn\'t writable. Until then database updates won\'t be applied automatically, admin settings and console configuration changes won\'t be saved.', ConfigFileManager::CONFIG_DATA_FILE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check server vitality
|
// Check server vitality
|
||||||
|
|
Loading…
Reference in New Issue
Block a user