From c30538dd672121402f420d5fc1e65ca3242720e3 Mon Sep 17 00:00:00 2001 From: Dennis Reilard Date: Sun, 21 Jul 2024 20:31:36 +0200 Subject: [PATCH 1/2] Update index.php --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index cbe6e6ecc..52eb0f68a 100644 --- a/index.php +++ b/index.php @@ -7,7 +7,7 @@ define('PHPVERSION', '7.4'); if (!version_compare(PHP_VERSION, PHPVERSION, '>=')) { - die('Ilch CMS 2 needs at least php version 7.4'); + die('Ilch CMS 2 needs at least php version ' . PHPVERSION); } @ini_set('display_errors', 'on'); @@ -31,7 +31,7 @@ $serverTimeZone = @date_default_timezone_get(); date_default_timezone_set('UTC'); -define('VERSION', '2.2.1'); +define('VERSION', '2.2.2'); define('SERVER_TIMEZONE', $serverTimeZone); define('DEFAULT_MODULE', 'page'); define('DEFAULT_LAYOUT', 'index'); From 5851384dae47c68656c96ac29b0a963c195a3c77 Mon Sep 17 00:00:00 2001 From: Dennis Reilard Date: Sun, 21 Jul 2024 20:59:05 +0200 Subject: [PATCH 2/2] Update config.php --- application/modules/admin/config/config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/modules/admin/config/config.php b/application/modules/admin/config/config.php index 0c699fa3c..84681ce85 100644 --- a/application/modules/admin/config/config.php +++ b/application/modules/admin/config/config.php @@ -1003,7 +1003,7 @@ public function getUpdate(string $installedVersion): string removeDir(APPLICATION_PATH . '/libraries/Ilch/BBCode'); // Add second updateserver. - $this->db()->insert('updateservers') + $this->db()->insert('admin_updateservers') ->values(['url' => 'https://ilch.blackcoder.de/stable/', 'operator' => 'ilch', 'country' => 'Germany']) ->execute(); @@ -1018,7 +1018,7 @@ public function getUpdate(string $installedVersion): string } // Fix server information. There have been cases "in the wild" where this was altered. - $this->db()->update('updateservers') + $this->db()->update('admin_updateservers') ->values(['operator' => 'ilch', 'country' => 'Germany']) ->where(['url' => 'https://www.ilch.de/ilch2_updates/stable/']) ->execute();