equal
deleted
inserted
replaced
319 |
319 |
320 $lang_local = new Language($lang_id); |
320 $lang_local = new Language($lang_id); |
321 $lang_local->import( ENANO_ROOT . "/language/{$lang_info['dir']}/user.json" ); |
321 $lang_local->import( ENANO_ROOT . "/language/{$lang_info['dir']}/user.json" ); |
322 $lang_local->import( ENANO_ROOT . "/language/{$lang_info['dir']}/tools.json" ); |
322 $lang_local->import( ENANO_ROOT . "/language/{$lang_info['dir']}/tools.json" ); |
323 $lang_local->import( ENANO_ROOT . "/language/{$lang_info['dir']}/admin.json" ); |
323 $lang_local->import( ENANO_ROOT . "/language/{$lang_info['dir']}/admin.json" ); |
|
324 |
|
325 $q = $db->sql_query('SELECT lang_id FROM ' . table_prefix . 'language ORDER BY lang_id DESC LIMIT 1;'); |
|
326 if ( !$q ) |
|
327 $db->_die(); |
|
328 |
|
329 list($lang_id_int) = $db->fetchrow_num(); |
|
330 $db->free_result(); |
|
331 setConfig('default_language', $lang_id_int); |
324 |
332 |
325 return true; |
333 return true; |
326 } |
334 } |
327 |
335 |
328 function stg_init_logs() |
336 function stg_init_logs() |