]> git.mxchange.org Git - friendica.git/commitdiff
Issue 9363: Display the latest post update version
authorMichael <heluecht@pirati.ca>
Sun, 4 Oct 2020 20:46:42 +0000 (20:46 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 4 Oct 2020 20:46:42 +0000 (20:46 +0000)
src/Database/PostUpdate.php
src/Module/Friendica.php

index a418a7948dd5c99d6ecbb74dcf3f1cc30573e58f..6713330e599a216d5300373836de5fa6a98c07d4 100644 (file)
@@ -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
index f02cc2610b803888d1f75232c720dcf69a9007cc..7da02808962969292e2459a52bf8aee726de3cb2 100644 (file)
@@ -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
                                '<strong>' . FRIENDICA_VERSION . '</strong>',
                                DI::baseUrl()->get(),
                                '<strong>' . DB_UPDATE_VERSION . '/' . $config->get('system', 'build') .'</strong>',
-                               '<strong>' . $config->get('system', 'post_update_version') . '</strong>'),
+                               '<strong>' . PostUpdate::VERSION . '/' . $config->get('system', 'post_update_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'),