Сессия

This commit is contained in:
2020-10-22 19:53:44 +06:00
parent 66743fa9d4
commit 45431e6aa8
5 changed files with 35 additions and 10 deletions

View File

@ -16,7 +16,7 @@ function trt($text)
global $db;
$result='';
$sql='select translation from main._translations where del=false and language_id='.$_SESSION["LNG"].' and identifier=\''.$text.'\';';
$sql='select translation from _translations where del=false and language_id='.$_SESSION["LNG"].' and identifier=\''.$text.'\';';
//$sql='select translation from main._translations where del=false and language_id=(select id from main._languages where short_name=\''.$_SESSION["LNG"].'\') and identifier=\''.$text.'\';';
$res = NULL;
try