Fix: Title of page is second parameter

This commit is contained in:
Laurent Destailleur 2010-05-26 11:28:10 +00:00
parent be52d8b46f
commit 4c6a3a0fdc
2 changed files with 8 additions and 8 deletions

View File

@ -89,7 +89,7 @@ if ($_REQUEST["action"] == 'add')
* Put here all code to build page * Put here all code to build page
****************************************************/ ****************************************************/
llxHeader('MyPageName','',''); llxHeader('','MyPageName','');
$form=new Form($db); $form=new Form($db);
@ -104,7 +104,7 @@ $form=new Form($db);
* Put here code to view linked object * Put here code to view linked object
****************************************************/ ****************************************************/
$myobject->load_object_linked($myobject->id,$myobject->element); $myobject->load_object_linked($myobject->id,$myobject->element);
foreach($myobject->linked_object as $object => $objectid) foreach($myobject->linked_object as $object => $objectid)
{ {
if($conf->$object->enabled) if($conf->$object->enabled)

View File

@ -115,7 +115,7 @@ function Activate($value,$withdeps=1)
$result=$objMod->init(); $result=$objMod->init();
if ($result <= 0) $ret=$objMod->error; if ($result <= 0) $ret=$objMod->error;
} }
if ($withdeps) if ($withdeps)
{ {
if (is_array($objMod->depends) && !empty($objMod->depends)) if (is_array($objMod->depends) && !empty($objMod->depends))
@ -129,7 +129,7 @@ function Activate($value,$withdeps=1)
} }
} }
} }
if (is_array($objMod->conflictwith) && !empty($objMod->conflictwith)) if (is_array($objMod->conflictwith) && !empty($objMod->conflictwith))
{ {
// Desactivation des modules qui entrent en conflit // Desactivation des modules qui entrent en conflit
@ -207,8 +207,8 @@ function UnActivate($value,$requiredby=1)
*/ */
$_SESSION["mode"]=$mode; $_SESSION["mode"]=$mode;
$wikihelp='EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones'; $help_url='EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones';
llxHeader($langs->trans("Setup"),'',$wikihelp); llxHeader('',$langs->trans("Setup"),$help_url);
print_fiche_titre($langs->trans("ModulesSetup"),'','setup'); print_fiche_titre($langs->trans("ModulesSetup"),'','setup');
@ -448,7 +448,7 @@ foreach ($orders as $key => $value)
if (! empty($conf->global->$const_name)) if (! empty($conf->global->$const_name))
{ {
$disableSetup = 0; $disableSetup = 0;
// Module actif // Module actif
if (! empty($objMod->always_enabled) || (($conf->global->MAIN_MODULE_MULTICOMPANY && $objMod->core_enabled) && ($user->entity || $conf->entity!=1))) if (! empty($objMod->always_enabled) || (($conf->global->MAIN_MODULE_MULTICOMPANY && $objMod->core_enabled) && ($user->entity || $conf->entity!=1)))
{ {
@ -514,7 +514,7 @@ foreach ($orders as $key => $value)
// Module non actif // Module non actif
print '<a href="modules.php?id='.$objMod->numero.'&amp;action=set&amp;value=' . $modName . '&amp;mode=' . $mode . '">'; print '<a href="modules.php?id='.$objMod->numero.'&amp;action=set&amp;value=' . $modName . '&amp;mode=' . $mode . '">';
print img_picto($langs->trans("Disabled"),'off'); print img_picto($langs->trans("Disabled"),'off');
print "</a></td>\n <td>&nbsp;</td>\n"; print "</a></td>\n <td>&nbsp;</td>\n";
} }