From 6e495bfbe1abb419d78858fac18788d3d52b4f3d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 13 Apr 2013 14:38:26 +0200 Subject: [PATCH] Fix: lang loading --- htdocs/core/modules/modOpenSurvey.class.php | 8 ++++---- htdocs/opensurvey/list.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/core/modules/modOpenSurvey.class.php b/htdocs/core/modules/modOpenSurvey.class.php index e9385442a85..0930f7dfa94 100755 --- a/htdocs/core/modules/modOpenSurvey.class.php +++ b/htdocs/core/modules/modOpenSurvey.class.php @@ -123,7 +123,7 @@ class modOpenSurvey extends DolibarrModules 'titre'=>'Surveys', 'mainmenu'=>'opensurvey', 'url'=>'/opensurvey/index.php', - 'langs'=>'opensurvey@opensurvey', + 'langs'=>'opensurvey', 'position'=>200, 'enabled'=>'$conf->opensurvey->enabled', // Define condition to show or hide menu entry. Use '$conf->NewsSubmitter->enabled' if entry must be visible if module is enabled. 'perms'=>'$user->rights->opensurvey->survey->read', @@ -137,7 +137,7 @@ class modOpenSurvey extends DolibarrModules 'mainmenu'=>'opensurvey', 'leftmenu'=>'opensurvey', 'url'=>'/opensurvey/index.php?mainmenu=opensurvey&leftmenu=opensurvey', - 'langs'=>'opensurvey@opensurvey', + 'langs'=>'opensurvey', 'position'=>200, 'enabled'=>'$conf->opensurvey->enabled', // Define condition to show or hide menu entry. Use '$conf->NewsSubmitter->enabled' if entry must be visible if module is enabled. 'perms'=>'', @@ -151,7 +151,7 @@ class modOpenSurvey extends DolibarrModules 'mainmenu'=>'opensurvey', 'leftmenu'=>'opensurvey_new', 'url'=>'/opensurvey/public/index.php?origin=dolibarr', - 'langs'=>'opensurvey@opensurvey', + 'langs'=>'opensurvey', 'position'=>210, 'enabled'=>'$conf->opensurvey->enabled', // Define condition to show or hide menu entry. Use '$conf->NewsSubmitter->enabled' if entry must be visible if module is enabled. 'perms'=>'', @@ -165,7 +165,7 @@ class modOpenSurvey extends DolibarrModules 'mainmenu'=>'opensurvey', 'leftmenu'=>'opensurvey_list', 'url'=>'/opensurvey/list.php', - 'langs'=>'opensurvey@opensurvey', + 'langs'=>'opensurvey', 'position'=>220, 'enabled'=>'$conf->opensurvey->enabled', // Define condition to show or hide menu entry. Use '$conf->NewsSubmitter->enabled' if entry must be visible if module is enabled. 'perms'=>'', diff --git a/htdocs/opensurvey/list.php b/htdocs/opensurvey/list.php index 868354dd184..506ffecc99e 100755 --- a/htdocs/opensurvey/list.php +++ b/htdocs/opensurvey/list.php @@ -118,7 +118,7 @@ while ($i < min($num,$limit)) $var=!$var; print ''; print ''; - print ''.img_picto('','object_opensurvey@opensurvey').' '.$obj->id_sondage.''; + print ''.img_picto('','object_opensurvey').' '.$obj->id_sondage.''; print ''; $type=($obj->format=='A' || $obj->format=='A+')?'classic':'date'; print img_picto('',dol_buildpath('/opensurvey/img/'.($type == 'classic'?'chart-32.png':'calendar-32.png'),1),'width="16"',1);