From cb5a9ae2860dbe7b33961a1ddf6256609baa3e1b Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 4 Oct 2020 20:46:42 +0000 Subject: [PATCH] Issue 9363: Display the latest post update version --- src/Database/PostUpdate.php | 1 + src/Module/Friendica.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Database/PostUpdate.php b/src/Database/PostUpdate.php index a418a7948d..6713330e59 100644 --- a/src/Database/PostUpdate.php +++ b/src/Database/PostUpdate.php @@ -45,6 +45,7 @@ class PostUpdate { // Needed for the helper function to read from the legacy term table const OBJECT_TYPE_POST = 1; + const VERSION = 1349; /** * Calls the post update functions diff --git a/src/Module/Friendica.php b/src/Module/Friendica.php index f02cc2610b..7da0280896 100644 --- a/src/Module/Friendica.php +++ b/src/Module/Friendica.php @@ -26,6 +26,7 @@ use Friendica\Core\Addon; use Friendica\Core\Hook; use Friendica\Core\Renderer; use Friendica\Core\System; +use Friendica\Database\PostUpdate; use Friendica\DI; use Friendica\Model\User; use Friendica\Protocol\ActivityPub; @@ -96,7 +97,7 @@ class Friendica extends BaseModule '' . FRIENDICA_VERSION . '', DI::baseUrl()->get(), '' . DB_UPDATE_VERSION . '/' . $config->get('system', 'build') .'', - '' . $config->get('system', 'post_update_version') . ''), + '' . PostUpdate::VERSION . '/' . $config->get('system', 'post_update_version') . ''), 'friendica' => DI::l10n()->t('Please visit Friendi.ca to learn more about the Friendica project.'), 'bugs' => DI::l10n()->t('Bug reports and issues: please visit') . ' ' . '' . DI::l10n()->t('the bugtracker at github') . '', 'info' => DI::l10n()->t('Suggestions, praise, etc. - please email "info" at "friendi - dot - ca'),