Commit dce8ef82 authored by catch's avatar catch

Issue #1272840: reverting more stuff.

parent 67a5bf1a
...@@ -206,38 +206,6 @@ function locale_schema() { ...@@ -206,38 +206,6 @@ function locale_schema() {
return $schema; return $schema;
} }
/**
* Converts language domains to new format.
*/
function locale_update_8001() {
$message = '';
$domains = locale_language_negotiation_url_domains();
// $used_domains keeps track of the domain names in use.
$used_domains = array();
foreach ($domains as $langcode => $domain) {
// Domain names can not contain protocol and/or ports.
if (!empty($domain)) {
$host = 'http://' . str_replace(array('http://', 'https://'), '', $domain);
if (parse_url($host, PHP_URL_HOST) != $domain) {
$domains[$langcode] = parse_url($host, PHP_URL_HOST);
}
if (array_key_exists($domain, $used_domains)) {
if (empty($message)) {
$message = 'Some languages are using the same domain name, you should change these domain names at ' . l('URL language detection configuration', 'admin/config/regional/language/configure/url' . '.');
}
}
else {
$used_domains[$domain] = $domain;
}
}
}
locale_language_negotiation_url_domains_save($domains);
if (!empty($message)) {
return $message;
}
}
/** /**
* @addtogroup updates-7.x-to-8.x * @addtogroup updates-7.x-to-8.x
* @{ * @{
......
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