Changeset 1465600
- Timestamp:
- 08/02/2016 12:49:47 AM (10 years ago)
- Location:
- user-language-switch/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
user-language-switch.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
user-language-switch/trunk/readme.txt
r1404026 r1465600 8 8 Requires at least: 4.0 9 9 Tested up to: 4.4 10 Stable tag: 1.6. 710 Stable tag: 1.6.8 11 11 License: GPLv2 or later 12 12 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 173 173 * Allow change flag image 174 174 * Add gray filter to flags when no have a translation 175 = 1.6.8 = 176 * Fix automatic redirection based on browser language. 175 177 176 178 == Upgrade Notice == -
user-language-switch/trunk/user-language-switch.php
r1404026 r1465600 3 3 Plugin Name: User Language Switch 4 4 Description: Build a multilingual and SEO friendly website. Linking translations of content and allow visitors to browse your website in different languages. 5 Version: 1.6. 75 Version: 1.6.8 6 6 Author: webilop 7 7 Author URI: http://www.webilop.com … … 300 300 $redirectUrl = uls_get_url_translated($homeUrl, $language); 301 301 } 302 //add the language to the URL 303 else{ 304 $redirectUrl = uls_get_url_translated($url, $language); 305 } 302 306 303 307 //check if it is the first redirection 304 308 if(!session_id()) session_start(); 305 if( empty($_SESSION['uls_home_redirection']) && empty($_COOKIE['uls_home_redirection'])){309 if($url != $redirectUrl && empty($_SESSION['uls_home_redirection']) && empty($_COOKIE['uls_home_redirection'])){ 306 310 //save temporal vars to avoid redirection in the home page again 307 311 $time = date_format(new DateTime(), 'Y-m-d H:i');
Note: See TracChangeset
for help on using the changeset viewer.