mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 23:32:17 +02:00
N°8796 - Add PHP code style validation in iTop and extensions - format whole code base
This commit is contained in:
@@ -38,19 +38,15 @@
|
||||
);
|
||||
|
||||
// Load current environment
|
||||
if (file_exists(__DIR__.'/../../approot.inc.php'))
|
||||
{
|
||||
if (file_exists(__DIR__.'/../../approot.inc.php')) {
|
||||
require_once __DIR__.'/../../approot.inc.php'; // When in env-xxxx folder
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
require_once __DIR__.'/../../../approot.inc.php'; // When in datamodels/x.x folder
|
||||
}
|
||||
require_once APPROOT.'application/startup.inc.php';
|
||||
|
||||
// Protection against setup in the following configuration : ITIL Ticket with Enhanced Portal selected but neither UserRequest or Incident. Which would crash the portal.
|
||||
if (!class_exists('UserRequest') && !class_exists('Incident'))
|
||||
{
|
||||
if (!class_exists('UserRequest') && !class_exists('Incident')) {
|
||||
die('iTop has neither been installed with User Request nor Incident tickets. Please contact your administrator.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user