09-02-2009

URL problem fix

Modules using forms in CMSMadeSimple were very often referring to the wrong hostname. Pressing Submit in those forms always lead to a 404. (Probably due to bad settings of the hosting provider of one of our customers)

In code, $_SERVER['SERVER_NAME'] was used, where actually something like $config['root_url'] should be used.

I've added a $config['server_name'], and adjusted CMS\lib\classes\module_support\modform.inc.php. Now forms are working as they should work.

Geen opmerkingen: