Skip to content
Snippets Groups Projects
Commit 4bf5880c authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #450 from greezybacon/issue/deploy-next


oops: Fixup deploy for 1.8.1 and onward

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents ebfb0b45 9ff634ad
No related branches found
No related tags found
No related merge requests found
...@@ -46,8 +46,7 @@ class Manager extends Module { ...@@ -46,8 +46,7 @@ class Manager extends Module {
if ($val == $action) if ($val == $action)
unset($argv[$idx]); unset($argv[$idx]);
foreach (glob(dirname(__file__).'/modules/*.php') as $script) require_once dirname(__file__)."/modules/{$args['action']}.php";
include_once $script;
if (($module = Module::getInstance($action))) if (($module = Module::getInstance($action)))
return $module->_run($args['action']); return $module->_run($args['action']);
......
...@@ -48,6 +48,8 @@ class FileManager extends Module { ...@@ -48,6 +48,8 @@ class FileManager extends Module {
function run($args, $options) { function run($args, $options) {
if (!defined('OST_INSTALLED'))
$this->fail('Install your config file into `include/`');
Bootstrap::connect(); Bootstrap::connect();
osTicket::start(); osTicket::start();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment