Simple Machines Community Forum

SMF Development => Feature Requests => Topic started by: Arantor on April 06, 2022, 07:03:01 PM

Title: Pathing
Post by: Arantor on April 06, 2022, 07:03:01 PM
Can we make the whole process of repair_settings.php somewhat less required please?

By which: for 2.2 or whatever, can we do fresh installations and upgrades so that instead of hardcoding a full path and URL into the smileys/avatars/themes/etc etc, we support use of $boarddir, $themedir, $boardurl, $themeurl?

While I appreciate has its own special setup for serving static assets from a different URL, most sites do not. If we could usefully store all these paths in the DB with these tokens and replace them on initialisation with the current paths, the necessity of repair_settings.php drops dramatically.

Plus people can move things between hosts with far, far less complexity because then you only need to update Settings.php.