Changeset 737


Ignore:
Timestamp:
10/30/12 00:45:18 (2 years ago)
Author:
ofer
Message:

Avoid rewriting urls in the default language

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WordPress/plugin/transposh/transposh.php

    r736 r737  
    890890        $use_params = !$this->enable_permalinks_rewrite; 
    891891 
     892        // we don't really know, but we sometime rewrite urls when we are in the default language (canonicals?), so just clean them up 
     893        if ($this->target_language == $this->options->get_default_language())  
     894        { 
     895            $href = transposh_utils::cleanup_url($href, $this->home_url); 
     896            logger("cleaned up: $href", 4); 
     897            return $href; 
     898        } 
    892899        // some hackery needed for url translations 
    893900        // first cut home 
Note: See TracChangeset for help on using the changeset viewer.