You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (version_compare(ForumSettings::get('o_cur_version'), $latest_version, '>=')) {
98
-
return Router::redirect(Router::pathFor('adminIndex'), __('Running latest version message'));
99
-
} else {
100
-
return Router::redirect(Router::pathFor('adminIndex'), sprintf(__('New version available message'), '<a href="http://featherbb.org/">FeatherBB.org</a>'));
if (!Database::for_table('config')->set('o_cur_version', ForumEnv::get('FORUM_VERSION'))->save()) {
146
+
if (!Database::for_table('config')->raw_execute('UPDATE `'.ForumSettings::get('db_prefix').'config` SET `conf_value` = :value WHERE `conf_name` = "o_cur_version"', array('value' => ForumEnv::get('FORUM_VERSION')))) {
179
147
$coreUpdater->_warnings[] = __('Could not update core version in database');
Copy file name to clipboardExpand all lines: featherbb/View/admin/index.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@
40
40
<dl>
41
41
<dt><?php_e('FeatherBB version label') ?></dt>
42
42
<dd>
43
-
<?phpprintf(__('FeatherBB version data')."\n", ForumSettings::get('o_cur_version'), '<a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3C%2Fspan%3E%27%3C%2Fspan%3E.Router%3A%3A%3Cspan+class%3D"pl-en">pathFor('adminAction', ['action' => 'check_upgrade']).'">'.__('Check for upgrade').'</a>') ?>
43
+
<?phpprintf(__('FeatherBB version data')."\n", ForumSettings::get('o_cur_version'), '<a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3C%2Fspan%3E%27%3C%2Fspan%3E.Router%3A%3A%3Cspan+class%3D"pl-en">pathFor('adminUpdates').'">'.__('Check for upgrade').'</a>') ?>
0 commit comments