mirror of
https://github.com/friendica/friendica
synced 2025-04-21 17:50:11 +00:00
Merge remote-tracking branch 'upstream/develop' into move-delivery
This commit is contained in:
commit
4eceb2d26f
37 changed files with 712 additions and 132 deletions
|
@ -42,7 +42,7 @@ class DBSync extends BaseAdmin
|
|||
switch ($action) {
|
||||
case 'mark':
|
||||
if ($update) {
|
||||
DI::config()->set('database', 'update_' . $update, 'success');
|
||||
DI::keyValue()->set('database_update_' . $update, 'success');
|
||||
$curr = DI::config()->get('system', 'build');
|
||||
if (intval($curr) == $update) {
|
||||
DI::config()->set('system', 'build', intval($curr) + 1);
|
||||
|
@ -76,13 +76,13 @@ class DBSync extends BaseAdmin
|
|||
$o = DI::l10n()->t("Executing %s failed with error: %s", $func, $retval);
|
||||
} elseif ($retval === Update::SUCCESS) {
|
||||
$o = DI::l10n()->t('Update %s was successfully applied.', $func);
|
||||
DI::config()->set('database', $func, 'success');
|
||||
DI::keyValue()->set(sprintf('database_%s', $func), 'success');
|
||||
} else {
|
||||
$o = DI::l10n()->t('Update %s did not return a status. Unknown if it succeeded.', $func);
|
||||
}
|
||||
} else {
|
||||
$o = DI::l10n()->t('There was no additional update function %s that needed to be called.', $func) . "<br />";
|
||||
DI::config()->set('database', $func, 'success');
|
||||
DI::keyValue()->set(sprintf('database_%s', $func), 'success');
|
||||
}
|
||||
|
||||
return $o;
|
||||
|
|
|
@ -98,7 +98,7 @@ class Summary extends BaseAdmin
|
|||
$warningtext[] = DI::l10n()->t('The last update failed. Please run "php bin/console.php dbstructure update" from the command line and have a look at the errors that might appear. (Some of the errors are possibly inside the logfile.)');
|
||||
}
|
||||
|
||||
$last_worker_call = DI::config()->get('system', 'last_worker_execution', false);
|
||||
$last_worker_call = DI::keyValue()->get('last_worker_execution');
|
||||
if (!$last_worker_call) {
|
||||
$warningtext[] = DI::l10n()->t('The worker was never executed. Please check your database structure!');
|
||||
} elseif ((strtotime(DateTimeFormat::utcNow()) - strtotime($last_worker_call)) > 60 * 60) {
|
||||
|
|
|
@ -42,6 +42,7 @@ class Friendica extends BaseModule
|
|||
protected function content(array $request = []): string
|
||||
{
|
||||
$config = DI::config();
|
||||
$keyValue = DI::keyValue();
|
||||
|
||||
$visibleAddonList = Addon::getVisibleList();
|
||||
if (!empty($visibleAddonList)) {
|
||||
|
@ -100,7 +101,7 @@ class Friendica extends BaseModule
|
|||
'<strong>' . App::VERSION . '</strong>',
|
||||
DI::baseUrl()->get(),
|
||||
'<strong>' . $config->get('system', 'build') . '/' . DB_UPDATE_VERSION . '</strong>',
|
||||
'<strong>' . $config->get('system', 'post_update_version') . '/' . PostUpdate::VERSION . '</strong>'),
|
||||
'<strong>' . $keyValue->get('post_update_version') . '/' . PostUpdate::VERSION . '</strong>'),
|
||||
'friendica' => DI::l10n()->t('Please visit <a href="https://friendi.ca">Friendi.ca</a> to learn more about the Friendica project.'),
|
||||
'bugs' => DI::l10n()->t('Bug reports and issues: please visit') . ' ' . '<a href="https://github.com/friendica/friendica/issues?state=open">' . DI::l10n()->t('the bugtracker at github') . '</a>',
|
||||
'info' => DI::l10n()->t('Suggestions, praise, etc. - please email "info" at "friendi - dot - ca'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue