Skip to content

Commit

Permalink
Merge pull request #2 from haomaro/patch-1
Browse files Browse the repository at this point in the history
actualizacion index.php
  • Loading branch information
webcol committed Mar 22, 2016
2 parents bcce07e + 16769fa commit 0533fec
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@
$lang = 'es'; // por defecto el idioma para el app es español puede ser en, bt, de, zh
}

$lang_file = 'lang.'.(empty($lang)?'en':$lang).'.php';
// optimizacion de codigo al evaluar la llamda del archivo lang
/*
switch ($lang) {
case 'en':
$lang_file = 'lang.en.php';
Expand Down Expand Up @@ -130,7 +133,7 @@
$lang_file = 'lang.en.php';
}
*/
include_once RUTA_LENGUAJES . $lang_file;

//FIN LENGUAJES
Expand Down Expand Up @@ -162,4 +165,4 @@
}
catch(Exception $e){
}*/
}*/

0 comments on commit 0533fec

Please sign in to comment.