includes/lang.php
changeset 1036 589e6e7e5243
parent 945 c19242d13a49
child 1081 745200a9cc2a
equal deleted inserted replaced
1035:d0d617124b29 1036:589e6e7e5243
   628     if ( !preg_match('/^[a-z0-9_]+$/', $filter_name) )
   628     if ( !preg_match('/^[a-z0-9_]+$/', $filter_name) )
   629     {
   629     {
   630       return false;
   630       return false;
   631     }
   631     }
   632     $this->filters[$filter_name] = $filter_function;
   632     $this->filters[$filter_name] = $filter_function;
       
   633     return true;
   633   }
   634   }
   634   
   635   
   635   /**
   636   /**
   636    * Fetches a language string from the cache in RAM. If it isn't there, it will call fetch() again and then try. If it still can't find it, it will ask for the string
   637    * Fetches a language string from the cache in RAM. If it isn't there, it will call fetch() again and then try. If it still can't find it, it will ask for the string
   637    * in the default language. If even then the string can't be found, this function will return what was passed to it.
   638    * in the default language. If even then the string can't be found, this function will return what was passed to it.