From cb166cb75874574542619116b2bb8b736ab7e167 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 19 Mar 2023 15:14:04 -0700 Subject: [PATCH] Made latest update routine method name generic. --- credits.php | 4 ++-- e107_admin/update_routines.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/credits.php b/credits.php index 71d100246..6cdeb4267 100644 --- a/credits.php +++ b/credits.php @@ -48,9 +48,9 @@ if (!defined('e107_INIT'))

Sponsors

- Stemaid.
+ Stemaid.

- + diff --git a/e107_admin/update_routines.php b/e107_admin/update_routines.php index fcc75883e..41421e9cf 100644 --- a/e107_admin/update_routines.php +++ b/e107_admin/update_routines.php @@ -114,7 +114,7 @@ if (!$dont_check_update) // $dbupdate['217_to_218'] = array('master'=>false, 'title'=> e107::getParser()->lanVars($LAN_UPDATE_4, array('2.1.7','2.1.8')), 'message'=> null, 'hide_when_complete'=>true); $dbupdate['706_to_800'] = array('master'=>true, 'title'=> e107::getParser()->lanVars($LAN_UPDATE_4, array('1.x','2.0')), 'message'=> LAN_UPDATE_29, 'hide_when_complete'=>true); - $dbupdate['20x_to_233'] = array('master'=>true, 'title'=> e107::getParser()->lanVars($LAN_UPDATE_4, array('2.x','2.3.3')), 'message'=> null, 'hide_when_complete'=>false); + $dbupdate['20x_to_latest'] = array('master'=>true, 'title'=> e107::getParser()->lanVars($LAN_UPDATE_4, array('2.x', $e107info['e107_version'])), 'message'=> null, 'hide_when_complete'=>false); @@ -628,7 +628,7 @@ function update_core_database($type = '') * @param string $type * @return bool true = no update required, and false if update required. */ - function update_20x_to_233($type='') + function update_20x_to_latest($type='') { $sql = e107::getDb();