File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1919// Change this based on your dev environment's setting
2020$ g_mantis_root = '../../mantisbt ' ;
2121
22-
2322// ---------------------------------------------------------------------------
2423// Main program
2524//
3635// Change to framework's root dir
3736chdir ( dirname ( __DIR__ ) );
3837
38+ // Since we include the plugin files to load the classes, which in turn
39+ // include some of MantisBT core APIs, we need the following so required
40+ // constants are defined.
41+ require_once $ g_mantis_root . '/core/constant_inc.php ' ;
42+ require_once $ g_mantis_root . '/vendor/adodb/adodb-php/adodb.inc.php ' ;
43+
3944// Load plugins and get their version numbers
4045foreach ( new DirectoryIterator ( getcwd () ) as $ t_file ) {
4146 $ t_name = $ t_file ->getFilename ();
You can’t perform that action at this time.
0 commit comments