Changeset 653 for trunk/includes/global.php
- Timestamp:
- Dec 14, 2013, 9:58:27 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/global.php
r641 r653 512 512 return($TablesColumn); 513 513 } 514 function GetTranslatNames($Text,$mode,$TablesColumn )514 function GetTranslatNames($Text,$mode,$TablesColumn, $FirstBig = True) 515 515 { 516 516 global $System, $Config; … … 565 565 566 566 //find word only if is 3 characters and more, and if starts by upper char, and search only once 567 if ((strlen($ArrStr[$i]) > 3) and ( ctype_upper(substr($ArrStr[$i],0,1))) and (array_search($ArrStr[$i], $ArrStr) == $i)) {567 if ((strlen($ArrStr[$i]) > 3) and ((!$FirstBig) or (ctype_upper(substr($ArrStr[$i],0,1)))) and (array_search($ArrStr[$i], $ArrStr) == $i)) { 568 568 $where .= '(`O`.`'.$Column.'` LIKE "'.addslashes($ArrStr[$i]).'%") OR '; 569 569 $SqlOK = true;
Note:
See TracChangeset
for help on using the changeset viewer.