Commit c13c7bab authored by Jonny Bradley's avatar Jonny Bradley

[FIX] console: Don't redirect in the console if tiki_domain_redirects or other prefs are set.

Tried to add this at a loweler level using $access->preventRedirect but that didn't seem to work (TODO one day)
parent d54cc19b
......@@ -99,7 +99,7 @@ if (strpos($prefs['tiki_domain_redirects'], ',') !== false) {
unset($new);
}
if ( isset($domain_map[$host]) ) {
if ( isset($domain_map[$host]) && ! defined('TIKI_CONSOLE') ) {
$prefix = $tikilib->httpPrefix();
$prefix = str_replace("://$host", "://{$domain_map[$host]}", $prefix);
$url = $prefix . $requestUri;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment