Changeset 658
- Timestamp:
- 08/06/2011 02:01:36 AM (10 months ago)
- File:
-
- 1 edited
-
trunk/WordPress/plugin/transposh/core/utils.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/WordPress/plugin/transposh/core/utils.php
r621 r658 310 310 $href = substr($href, strlen($home_url)); 311 311 $url = stripslashes(urldecode($href)); 312 $params = ($pos = strpos($url, '?')) ? substr($url, $pos) : ''; 312 313 $url = (($pos = strpos($url, '?')) ? substr($url, 0, $pos) : $url); 313 314 $url2 = ''; … … 334 335 else $url2 .= '/' . $part; 335 336 } 337 if ($url2 =='') $url2 = '/'; 336 338 // TODO: Consider sanitize_title_with_dashes 337 339 // TODO : need to handle params.... … … 342 344 //$href = $this->home_url.$url2; 343 345 if (substr($href, strlen($href) - 1) == '/') $url2.='/'; 344 return $home_url . $url2 ;346 return $home_url . $url2.$params; 345 347 } 346 348
Note: See TracChangeset
for help on using the changeset viewer.
