Skip to content
/ myaac Public
forked from slawkens/myaac

Commit

Permalink
Fix error in CLI, where BASE_URL is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed Jan 24, 2025
1 parent 07012f7 commit 4d749b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@

// 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
Expand Down

0 comments on commit 4d749b8

Please sign in to comment.