Changeset 108


Ignore:
Timestamp:
03/27/2009 12:01:13 AM (3 years ago)
Author:
ofer
Message:

When the default language is not set to viewable or translatable, it will only be listed when there's a language (so we can get back to it)

File:
1 edited

Legend:

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

    r107 r108  
    7979{ 
    8080        logger("Enter " . __METHOD__, 4); 
    81         global $languages, $wp_query, $plugin_url; 
     81        global $languages, $wp_query, $plugin_url,$lang; 
    8282        extract($args); 
    8383 
     
    115115                                if(strstr($viewable_langs, $code) || 
    116116                                   ($is_translator && strstr($editable_langs, $code)) || 
    117                                    get_option(DEFAULT_LANG) == $code) 
     117                                   (get_option(DEFAULT_LANG) == $code && $lang)) 
    118118                                { 
    119119                                $page_url2 = rewrite_url_lang_param($page_url, $code, $is_edit); 
     
    148148                                if(strstr($viewable_langs, $code) || 
    149149                                   ($is_translator && strstr($editable_langs, $code)) || 
    150                                    get_option(DEFAULT_LANG) == $code) 
     150                                   (get_option(DEFAULT_LANG) == $code && $lang)) 
    151151                                { 
    152152                                        $is_selected = ($lang == $code ? "selected=\"selected\"" : "" ); 
Note: See TracChangeset for help on using the changeset viewer.