BUG 5978 Add getVersion to System class and use it instead of PM_VERSION
Instead of every page defining it's own PM_VERSION interpretation, there is now a single getVersion function in the System class to always get the right version.
This commit is contained in:
@@ -89,11 +89,9 @@ try {
|
||||
$oClass->iPMVersion = 0;
|
||||
}
|
||||
if ($oClass->iPMVersion > 0) {
|
||||
if (!defined('PM_VERSION')) {
|
||||
define('PM_VERSION', 0);
|
||||
}
|
||||
if (PM_VERSION > 0) {
|
||||
if ($oClass->iPMVersion > PM_VERSION) {
|
||||
G::LoadClass("system");
|
||||
if (System::getVersion() > 0) {
|
||||
if ($oClass->iPMVersion > System::getVersion()) {
|
||||
//throw new Exception('This plugin needs version ' . $oClass->iPMVersion . ' or higher of ProcessMaker');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user