We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69a224d commit c0a9f80Copy full SHA for c0a9f80
tools/bump-version.php
@@ -19,7 +19,6 @@
19
// Change this based on your dev environment's setting
20
$g_mantis_root = '../../mantisbt';
21
22
-
23
// ---------------------------------------------------------------------------
24
// Main program
25
//
@@ -36,6 +35,12 @@
36
35
// Change to framework's root dir
37
chdir( dirname( __DIR__ ) );
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
+
44
// Load plugins and get their version numbers
45
foreach( new DirectoryIterator( getcwd() ) as $t_file ) {
46
$t_name = $t_file->getFilename();
0 commit comments