Skip to content

Commit c0a9f80

Browse files
committed
Adjust version bump script for PHP 8
1 parent 69a224d commit c0a9f80

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/bump-version.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Change this based on your dev environment's setting
2020
$g_mantis_root = '../../mantisbt';
2121

22-
2322
// ---------------------------------------------------------------------------
2423
// Main program
2524
//
@@ -36,6 +35,12 @@
3635
// Change to framework's root dir
3736
chdir( 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
4045
foreach( new DirectoryIterator( getcwd() ) as $t_file ) {
4146
$t_name = $t_file->getFilename();

0 commit comments

Comments
 (0)