Changeset 115
- Timestamp:
- 03/28/2009 11:13:00 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WordPress/plugin/transposh/transposh_widget.php
r110 r115 117 117 118 118 //Only show languages which are viewable or (editable and the user is a translator) 119 if(str str($viewable_langs, $code)||120 ($is_translator && str str($editable_langs, $code)) ||119 if(strpos($viewable_langs, $code) !== FALSE || 120 ($is_translator && strpos($editable_langs, $code) !== FALSE) || 121 121 (get_option(DEFAULT_LANG) == $code && $lang)) 122 122 { … … 150 150 151 151 //Only show languages which are viewable or (editable and the user is a translator) 152 if(str str($viewable_langs, $code)||153 ($is_translator && str str($editable_langs, $code)) ||152 if(strpos($viewable_langs, $code) !== FALSE || 153 ($is_translator && strpos($editable_langs, $code) !== FALSE) || 154 154 (get_option(DEFAULT_LANG) == $code && $lang)) 155 155 { … … 168 168 { 169 169 //Add the edit checkbox only for translators on languages marked as editable 170 if($is_translator && str str($editable_langs, $lang))170 if($is_translator && strpos($editable_langs, $lang) !== FALSE) 171 171 { 172 172 echo "<input type=\"checkbox\" name=\"" . EDIT_PARAM . "\" value=\"1\"" .
Note: See TracChangeset
for help on using the changeset viewer.
