opencart/opencart — pull request #762 by maddes (2013-07-10 20:29:33+00:00)
Title: FIX for schema or host agnostic web sites (e.g. multiple domain setup)

Hello Daniel.

I've made and tested this quick fix to allow schema or host agnostic webs. This is really useful when having multiple domains for the same client.

It already worked without SEO_URLs but it complained when activating, so I fixed it.

It doesn't break normal usage, it's just a verification of key existence before usage.

After this patch, these configurations are valid on the config.php file (the new default could be '/' for less installation steps!):

// Scheme agnostic website (Note: the '//' is required):
define('HTTP_SERVER', '//www.domain.com/');

// Domain agnostic website:
define('HTTP_SERVER', '/');

ps: the $url_data to $url_info renaming on last version almost lost me.