From cff5f4f735a174df5f71054064e002098da030d7 Mon Sep 17 00:00:00 2001 From: jdarwood007 Date: Sun, 5 Nov 2023 19:48:34 -0800 Subject: [PATCH] typos --- Sources/Autoloader.php | 2 +- other/install.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Autoloader.php b/Sources/Autoloader.php index af7e14e5a59..7587143848f 100644 --- a/Sources/Autoloader.php +++ b/Sources/Autoloader.php @@ -41,7 +41,7 @@ } // Do any third-party scripts want in on the fun? - if (class_exists('SMF\\Config', false) && !defined('SMF_INSTALLING') && $hook_value !== (Config::$modSettings['integrate_autoload'] ?? '')) { + if (!defined('SMF_INSTALLING') && class_exists('SMF\\Config', false) && $hook_value !== (Config::$modSettings['integrate_autoload'] ?? '')) { if (!class_exists('SMF\\IntegrationHook', false) && is_file($sourcedir . '/IntegrationHook.php')) { require_once $sourcedir . '/IntegrationHook.php'; } diff --git a/other/install.php b/other/install.php index 9204efc3f8b..e43c7b262c1 100644 --- a/other/install.php +++ b/other/install.php @@ -868,9 +868,9 @@ function DatabaseSettings() Config::load(); // Better find the database file! - if (!file_exists(Config::$sourcedir . '/Db/APIs/' . Db::getClase(Config::$db_type) . '.php')) + if (!file_exists(Config::$sourcedir . '/Db/APIs/' . Db::getClass(Config::$db_type) . '.php')) { - $incontext['error'] = sprintf(Lang::$txt['error_db_file'], 'Db/APIs/' . Db::getClase(Config::$db_type) . '.php'); + $incontext['error'] = sprintf(Lang::$txt['error_db_file'], 'Db/APIs/' . Db::getClass(Config::$db_type) . '.php'); return false; }