[Qual] Warning on deprecated number of values
Module tabs declarations now uses 6 values including permissions.
This commit is contained in:
parent
ea7384cf68
commit
bbaa76fab1
@ -4855,6 +4855,8 @@ function complete_head_from_modules($conf,$langs,$object,&$head,&$h,$type,$mode=
|
||||
}
|
||||
else if (count($values) == 5) // deprecated
|
||||
{
|
||||
dol_syslog('Passing 5 values in tabs module_parts is deprecated. Please update to 6 with permissions.', LOG_WARNING);
|
||||
|
||||
if ($values[0] != $type) continue;
|
||||
if ($values[3]) $langs->load($values[3]);
|
||||
if (preg_match('/SUBSTITUTION_([^_]+)/i',$values[2],$reg))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user