Pathing

Started by Arantor, April 06, 2022, 07:03:01 PM

Previous topic - Next topic

Arantor

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 SM.org 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.
Perhaps it would have been better if I'd simply never bothered. Y'all clearly would be less unhappy that way.

Advertisement: