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 19
19
// Change this based on your dev environment's setting
20
20
$ g_mantis_root = '../../mantisbt ' ;
21
21
22
-
23
22
// ---------------------------------------------------------------------------
24
23
// Main program
25
24
//
36
35
// Change to framework's root dir
37
36
chdir ( dirname ( __DIR__ ) );
38
37
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
+
39
44
// Load plugins and get their version numbers
40
45
foreach ( new DirectoryIterator ( getcwd () ) as $ t_file ) {
41
46
$ t_name = $ t_file ->getFilename ();
You can’t perform that action at this time.
0 commit comments