diff --git a/htdocs/support/online.php b/htdocs/support/online.php
index 283058aee8c..b5d41a82052 100644
--- a/htdocs/support/online.php
+++ b/htdocs/support/online.php
@@ -56,8 +56,8 @@ print $langs->trans("ToGetHelpGoOnSparkAngels2",$titlesparkangels).'
';
$arrayofwidgets=array(
// Widget for Laurent Destailleur
array('name'=>'Laurent Destailleur',
- 'id'=>'4255',
- 'lang'=>'fr,en'), // Put always english at end
+ 'id'=>'4256,4255', // Put of list of sparkangels widget id (for each language)
+ 'lang'=>'fr,en'), // Put list of language code of widgets (always english at end)
// Widget for Regis Houssin
array('name'=>'Régis Houssin',
'id'=>'4611',
@@ -71,21 +71,29 @@ print '* '.$langs->trans("LinkToGoldMember",$langs->defaultlang).'
';
print '
| ';
print $arraywidget['name'].' '; print $langs->trans("PossibleLanguages").': '; + // All languages of user are shown foreach ($listoflangs as $langcode2) { + if (empty($widgetid)) $widgetid=$listoflangs[$pos-1]; if (! eregi($langcode,$langs->defaultlang) && $langcode2 != 'en') continue; // Show only english print $langcode2.' '; } print ' '; - print ''; + // But only first language found is used for widget + $widgetid=$listofwidgets[$pos-1]; + //print 'xx lang qualified='.$langcode.' id='.$widgetid; + print ''; print ' | ';
$found=1;
break;