Qual: Uniformize usage of array module_parts.

This commit is contained in:
Laurent Destailleur
2013-01-07 13:28:14 +01:00
parent de83dc68e1
commit 6d036699bb
9 changed files with 29 additions and 40 deletions

View File

@@ -4022,7 +4022,7 @@ function picto_from_langcode($codelang)
/**
* Complete or removed entries into a head array (used to build tabs) with value added by external modules.
* Such values are declared into $conf->tabs_modules.
* Such values are declared into $conf->modules_parts['tab'].
*
* @param Conf $conf Object conf
* @param Translate $langs Object langs
@@ -4047,9 +4047,9 @@ function picto_from_langcode($codelang)
*/
function complete_head_from_modules($conf,$langs,$object,&$head,&$h,$type,$mode='add')
{
if (isset($conf->tabs_modules[$type]) && is_array($conf->tabs_modules[$type]))
if (isset($conf->modules_parts['tabs'][$type]) && is_array($conf->modules_parts['tabs'][$type]))
{
foreach ($conf->tabs_modules[$type] as $value)
foreach ($conf->modules_parts['tabs'][$type] as $value)
{
$values=explode(':',$value);