Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes logic from Settings.php #8273

Conversation

Sesquipedalian
Copy link
Member

Removes path correction code from Settings.php, because SMF\Config::set() handles the job of making sure directory paths are correct.

Moves error catching code out of Settings.php into a new SMF\Config::getDbLastError() method, which handles loading Config::$db_last_error from the db_last_error.php file.

SMF\Config::set() now handles the job of making sure directory paths are correct.

Signed-off-by: Jon Stovell <[email protected]>
@Sesquipedalian Sesquipedalian added this to the 3.0 Alpha 3 milestone Jul 1, 2024
@Sesquipedalian Sesquipedalian merged commit 6d4e703 into SimpleMachines:release-3.0 Jul 1, 2024
13 checks passed
@Sesquipedalian Sesquipedalian deleted the 3.0/path_correction_code branch July 1, 2024 16:07
Sesquipedalian added a commit to Sesquipedalian/SMF that referenced this pull request Jul 1, 2024
Sesquipedalian added a commit to Sesquipedalian/SMF that referenced this pull request Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant