Add LEGACY_PATH constant to define the path to the legacy application

This commit is contained in:
Dillon-Brown 2019-12-24 13:26:51 +00:00
parent 471adea58e
commit f27aee78e5
4 changed files with 121 additions and 9 deletions

View file

@ -24,7 +24,7 @@ class Navbar extends LegacyHandler
'submenu' => [],
];
require 'include/globalControlLinks.php';
require LEGACY_PATH . 'include/globalControlLinks.php';
foreach ($global_control_links as $key => $value) {
if ($key === 'users') {
@ -77,4 +77,4 @@ class Navbar extends LegacyHandler
throw new \RuntimeException('Running legacy entry point failed');
}
}
}