Code comment

This commit is contained in:
Laurent Destailleur 2019-10-16 19:07:17 +02:00
parent 012ddd1cdc
commit 41dd53170e
2 changed files with 1 additions and 5 deletions

View File

@ -227,7 +227,7 @@ class Conf
$filesList = explode(":", $this->global->LOCAL_CONSTS_FILES);
foreach ($filesList as $file) {
$file=dol_sanitizeFileName($file);
include_once DOL_DOCUMENT_ROOT . "/".$file."/".$file."_consts.php"; // This file must set $this->global->XXX vars.
include_once DOL_DOCUMENT_ROOT . "/".$file."/".$file."_consts.php"; // This file can run code like setting $this->global->XXX vars.
}
}

View File

@ -1926,8 +1926,6 @@ function top_menu_bookmark(User $user, Translate $langs)
global $menumanager;
$html = '';
// Define $bookmarks
if (! empty($conf->bookmark->enabled) && $user->rights->bookmark->lire)
{
@ -2015,7 +2013,6 @@ function top_menu_search(User $user, Translate $langs)
$buttonList.='</div>';
$searchInput = '<input name="sall" id="top-global-search-input" class="dropdown-search-input" placeholder="'.$langs->trans('Search').'" autocomplete="off" >';
@ -2105,7 +2102,6 @@ function top_menu_search(User $user, Translate $langs)
</script>
';
return $html;
}