Esempio n. 1
0
 /**
  *	@fn load_strings_table
  *	@short Loads the string table for the current controller and language.
  *	@details Controller and language are obtained by the request parameters.
  */
 private static function load_strings_table()
 {
     $table = array();
     $controller = $_REQUEST['controller'];
     $global_strings = self::load_strings_file(@$_COOKIE['hl']);
     $table = array_merge($table, eval("return {$global_strings}"));
     $local_strings = self::load_strings_file(@$_COOKIE['hl'], $controller);
     $table = array_merge($table, eval("return {$local_strings}"));
     self::$strings_table = $table;
 }