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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user