cli: Class Not Found

This addresses a small issue where the osTicket class could not be found in
manage.php. This moves the boostrap.php include above the osTicket call to
ensure the class is loaded before use.
This commit is contained in:
JediKev
2023-10-25 15:45:33 +00:00
parent 03755768d9
commit 4689926b2d

View File

@@ -18,12 +18,12 @@
vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/
require_once 'bootstrap.php';
// Make sure the script is executed via CLI
if (!osTicket::is_cli())
die("Management only supported from command-line\n");
require_once 'bootstrap.php';
require_once CLI_DIR . 'cli.inc.php';
class Manager extends Module {
var $prologue =