Skip to content

Commit

Permalink
Merge pull request #149 from jcchavezs/jcchavezs-148
Browse files Browse the repository at this point in the history
Fixed a bug that translated also external URLs when they are subdomains ...
  • Loading branch information
johnclause committed May 1, 2015
2 parents cb2e979 + 2b6c0c6 commit 69d3ffc
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 69d3ffc

Please sign in to comment.