Skip to content

Conversation

@nicolas-eoxia
Copy link
Contributor

No description provided.

require_once DOL_DOCUMENT_ROOT . '/core/lib/company.lib.php';
// Load DoliSIRH environment
$found = false;
for ($i = 1; $i <= 2; $i++) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Utiliser une boucle est plus évolutif cependant il faudra penser à le répercuter partout parceque de base on fait plutôt comme ça :

// Load DoliSecu environment
if (file_exists('../dolisecu.main.inc.php')) {
	require_once __DIR__ . '/../dolisecu.main.inc.php';
} elseif (file_exists('../../dolisecu.main.inc.php')) {
	require_once __DIR__ . '/../../dolisecu.main.inc.php';
} else {
	die('Include of dolisecu main fails');
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 Estimated resolution time - 60 mins - 1 h Bug Something isn't working

Development

Successfully merging this pull request may close these issues.

Blocage chamgement des horaires dans le profil

2 participants