mirror of
https://github.com/friendica/friendica
synced 2025-02-22 02:06:48 +00:00
Fix code style
This commit is contained in:
parent
d82483f342
commit
9c002a1aa2
3 changed files with 33 additions and 24 deletions
|
@ -8,7 +8,6 @@
|
||||||
namespace Friendica\Module\Admin;
|
namespace Friendica\Module\Admin;
|
||||||
|
|
||||||
use Friendica\App;
|
use Friendica\App;
|
||||||
use Friendica\Core\Addon;
|
|
||||||
use Friendica\Core\Config\ValueObject\Cache;
|
use Friendica\Core\Config\ValueObject\Cache;
|
||||||
use Friendica\Core\Renderer;
|
use Friendica\Core\Renderer;
|
||||||
use Friendica\Core\Update;
|
use Friendica\Core\Update;
|
||||||
|
@ -101,8 +100,12 @@ class Summary extends BaseAdmin
|
||||||
// Check server vitality
|
// Check server vitality
|
||||||
if (!self::checkSelfHostMeta()) {
|
if (!self::checkSelfHostMeta()) {
|
||||||
$well_known = DI::baseUrl() . Probe::HOST_META;
|
$well_known = DI::baseUrl() . Probe::HOST_META;
|
||||||
$warningtext[] = DI::l10n()->t('<a href="%s">%s</a> is not reachable on your system. This is a severe configuration issue that prevents server to server communication. See <a href="%s">the installation page</a> for help.',
|
$warningtext[] = DI::l10n()->t(
|
||||||
$well_known, $well_known, DI::baseUrl() . '/help/Install');
|
'<a href="%s">%s</a> is not reachable on your system. This is a severe configuration issue that prevents server to server communication. See <a href="%s">the installation page</a> for help.',
|
||||||
|
$well_known,
|
||||||
|
$well_known,
|
||||||
|
DI::baseUrl() . '/help/Install'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check logfile permission
|
// Check logfile permission
|
||||||
|
@ -125,25 +128,31 @@ class Summary extends BaseAdmin
|
||||||
'from' => $currBasepath,
|
'from' => $currBasepath,
|
||||||
'to' => $confBasepath,
|
'to' => $confBasepath,
|
||||||
]);
|
]);
|
||||||
$warningtext[] = DI::l10n()->t('Friendica\'s system.basepath was updated from \'%s\' to \'%s\'. Please remove the system.basepath from your db to avoid differences.',
|
$warningtext[] = DI::l10n()->t(
|
||||||
|
'Friendica\'s system.basepath was updated from \'%s\' to \'%s\'. Please remove the system.basepath from your db to avoid differences.',
|
||||||
$currBasepath,
|
$currBasepath,
|
||||||
$confBasepath);
|
$confBasepath
|
||||||
|
);
|
||||||
} elseif (!is_dir($currBasepath)) {
|
} elseif (!is_dir($currBasepath)) {
|
||||||
DI::logger()->alert('Friendica\'s system.basepath is wrong.', [
|
DI::logger()->alert('Friendica\'s system.basepath is wrong.', [
|
||||||
'from' => $currBasepath,
|
'from' => $currBasepath,
|
||||||
'to' => $confBasepath,
|
'to' => $confBasepath,
|
||||||
]);
|
]);
|
||||||
$warningtext[] = DI::l10n()->t('Friendica\'s current system.basepath \'%s\' is wrong and the config file \'%s\' isn\'t used.',
|
$warningtext[] = DI::l10n()->t(
|
||||||
|
'Friendica\'s current system.basepath \'%s\' is wrong and the config file \'%s\' isn\'t used.',
|
||||||
$currBasepath,
|
$currBasepath,
|
||||||
$confBasepath);
|
$confBasepath
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
DI::logger()->alert('Friendica\'s system.basepath is wrong.', [
|
DI::logger()->alert('Friendica\'s system.basepath is wrong.', [
|
||||||
'from' => $currBasepath,
|
'from' => $currBasepath,
|
||||||
'to' => $confBasepath,
|
'to' => $confBasepath,
|
||||||
]);
|
]);
|
||||||
$warningtext[] = DI::l10n()->t('Friendica\'s current system.basepath \'%s\' is not equal to the config file \'%s\'. Please fix your configuration.',
|
$warningtext[] = DI::l10n()->t(
|
||||||
|
'Friendica\'s current system.basepath \'%s\' is not equal to the config file \'%s\'. Please fix your configuration.',
|
||||||
$currBasepath,
|
$currBasepath,
|
||||||
$confBasepath);
|
$confBasepath
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue