[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 02/03: Translate direct.php
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 02/03: Translate direct.php |
Date: |
Mon, 02 Nov 2015 18:09:47 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 06fad8b59c6265699dda47b3fb5469646b34eff7
Author: Dany De Bontridder <address@hidden>
Date: Mon Nov 2 18:56:03 2015 +0100
Translate direct.php
---
html/direct.php | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/html/direct.php b/html/direct.php
index d968d42..53a1794 100644
--- a/html/direct.php
+++ b/html/direct.php
@@ -30,12 +30,13 @@ $g_user->check_dossier($_GET['gDossier']);
$res=$cn->exec_sql("select distinct code,description from get_profile_menu($1)
where code ~* $2 or description ~* $3 order by code limit 5
",array($g_user->get_profile(),$_POST['acs'],$_POST['acs']));
$nb=Database::num_row($res);
echo "<ul>";
+set_language();
for ($i = 0;$i< $nb;$i++)
{
$row=Database::fetch_array($res,$i);
echo "<li>";
echo $row['code'];
- echo '<span class="informal"> '.$row['description'].'</span></li>';
+ echo '<span class="informal"> '._($row['description']).'</span></li>';
}
echo "</ul>";
if ( $nb == 0 ) {