MantisBT: master 91b05338

Author Committer Branch Timestamp Parent
dregad dregad master 2024-03-10 10:51 master 36e54774
Affected Issues  0034468: Refactoring and cleaning up includes
Changeset

Replace dirname( FILE ) by DIR (2. Commands)

Some commands require MantisConnect API functions.

Instead of repeating the same dirname() call for each mc_*.php include,
we define the path to SOAP API directory in a variable.

require_once statements defining functions not used in the Command have
been removed.

Fixes 0034468

mod - core/commands/ConfigsSetCommand.php Diff File
mod - core/commands/IssueAddCommand.php Diff File
mod - core/commands/IssueViewPageCommand.php Diff File
mod - core/commands/ProjectAddCommand.php Diff File
mod - core/commands/ProjectHierarchyAddCommand.php Diff File
mod - core/commands/ProjectUpdateCommand.php Diff File
mod - core/commands/ProjectUsersAddCommand.php Diff File
mod - core/commands/ProjectUsersGetCommand.php Diff File
mod - core/commands/UserTokenCreateCommand.php Diff File
mod - core/commands/UserTokenDeleteCommand.php Diff File
mod - core/commands/UserUpdateCommand.php Diff File
mod - core/commands/VersionGetCommand.php Diff File