+   Reply to Thread

Hi

Why u are using the language Library???
Most functions are defined in functions.php.

I have rewritten the language functions in functions.php


function get_lang(){
        return isset($_SESSION['user']['lang_id']) ? $_SESSION['user']['lang_id'] : LANG_ID;
 }
   
    function get_language_list () {
        return dir_list(LANGUAGE_DIR);
    }


Its maybe better and its works fine
Right, we added for the Rain CMS, but we're going to remove that class from Rain. Thanks for pointed out and interesting update for the language functions, we'll keep them in consideration!
OK, just pushed the changes:
https://github.com/rainphp/rainframework/commit/3c15ef8422ce3909c332cc77cd5a9981d949c01c

we used your get_installed_language() function.
Thanks!

+   Reply to Thread



Profiler output