From 4d749b881582f64b5a46196dbbb5ee8097127f03 Mon Sep 17 00:00:00 2001 From: slawkens Date: Fri, 24 Jan 2025 21:42:52 +0100 Subject: [PATCH] Fix error in CLI, where BASE_URL is not defined --- system/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/init.php b/system/init.php index 7bf9f1de..8c7e56fc 100644 --- a/system/init.php +++ b/system/init.php @@ -139,7 +139,7 @@ require_once SYSTEM . 'database.php'; // verify myaac tables exists in database if(!defined('MYAAC_INSTALL') && !$db->hasTable('myaac_account_actions')) { - throw new RuntimeException('Seems that the table myaac_account_actions of MyAAC doesn\'t exist in the database. This is a fatal error. You can try to reinstall MyAAC by visiting ' . BASE_URL . 'install'); + throw new RuntimeException('Seems that the table myaac_account_actions of MyAAC doesn\'t exist in the database. This is a fatal error. You can try to reinstall MyAAC by visiting ' . (IS_CLI ? 'http://your-ip.com/' : BASE_URL) . 'install'); } // execute migrations