Skip to content
Snippets Groups Projects
Commit 9dab5086 authored by Ken Rickard's avatar Ken Rickard
Browse files

-- #300311 by Garrett Albright. Fixes redirect error if module not configured.

parent c19977d6
No related branches found
No related tags found
No related merge requests found
// $Id$
27-AUG-2008
-- #300311 by Garrett Albright. Fixes redirect error if module not configured.
-- Creates release 5.x.1.7.
22-AUG-2008
-- Creates release 5.x.1.6
......
......@@ -57,7 +57,7 @@ function domain_init() {
if ($_domain == -1) {
$_domain = domain_default();
// If the request was not for the primary domain, send the user there. See http://drupal.org/node/293453.
if ($_subdomain != $_domain['subdomain']) {
if (!empty($_domain['subdomain']) && $_subdomain != $_domain['subdomain']) {
$request = domain_get_uri($_domain);
drupal_set_message(t('You have followed an incorrect link to this website. Please update your links and bookmarks to <a href="!url">!url</a>.', array('!url' => $request)));
drupal_goto($request);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment