Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed a bug that translated also external URLs when they are subdomains ... #149

Merged
merged 1 commit into from
May 1, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion qtranslate_utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ function qtranxf_external_host_ex($host,$homeinfo){
//$homehost = qtranxf_get_home_info()['host'];
switch($q_config['url_mode']){
case QTX_URL_QUERY: return $homeinfo['host'] != $host;
case QTX_URL_PATH:
case QTX_URL_PATH: return $homeinfo['host'] != $host;
case QTX_URL_DOMAIN: return !qtranxf_endsWith($host,$homeinfo['host']);
case QTX_URL_DOMAINS:
foreach($q_config['domains'] as $lang => $h){
Expand Down