Fix warning text

This commit is contained in:
Philipp Holzer 2023-01-07 15:30:45 +01:00
parent b7a2b6b352
commit 6e4e2c4a82
Signed by: nupplaPhil
GPG Key ID: 24A7501396EB5432
2 changed files with 1 additions and 6 deletions

View File

@ -245,11 +245,6 @@ class ConfigFileManager
{
$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)) {
$fileExists = true;
} else {

View File

@ -116,7 +116,7 @@ class Summary extends BaseAdmin
}
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