Changeset 9906 for trunk/plugins/language_switch/language_switch.inc.php
- Timestamp:
- Mar 28, 2011, 3:51:43 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/language_switch/language_switch.inc.php
r8728 r9906 71 71 add_url_params( $url_starting, array('lang'=> $code) )), 72 72 'alt' => ucwords( $displayname ), 73 'title' => substr($displayname, 0, -4), // remove [FR] or [RU] 73 74 'img' => get_root_url().'language/' . $code . '/' . $code . '.jpg', 74 75 ); 75 if ( $code !== $user['language'] ) 76 $lsw['flags'][$code] = $qlc ; 77 else $lsw['Active'] = $qlc; 76 77 $lsw['flags'][$code] = $qlc ; 78 79 if ($code == $user['language']) 80 { 81 $lsw['Active'] = $qlc; 82 } 78 83 } 79 84 $template->set_filename('language_flags', dirname(__FILE__) . '/flags.tpl');
Note: See TracChangeset
for help on using the changeset viewer.