Ignore:
Timestamp:
Dec 14, 2013, 9:58:27 PM (11 years ago)
Author:
maron
Message:

$ Added: don't have to by capitals at spell

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/global.php

    r641 r653  
    512512  return($TablesColumn);
    513513}
    514 function GetTranslatNames($Text,$mode,$TablesColumn)
     514function GetTranslatNames($Text,$mode,$TablesColumn, $FirstBig = True)
    515515{
    516516  global $System, $Config;
     
    565565
    566566        //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)) {
    568568          $where .= '(`O`.`'.$Column.'` LIKE "'.addslashes($ArrStr[$i]).'%") OR ';
    569569          $SqlOK = true;
Note: See TracChangeset for help on using the changeset viewer.