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:
@@ -1931,7 +1931,8 @@ class wsBase
|
||||
$result->status_code = 0;
|
||||
$result->message = 'Sucessful';
|
||||
$result->timestamp = date ( 'Y-m-d H:i:s');
|
||||
$result->version = PM_VERSION;
|
||||
G::LoadClass("system");
|
||||
$result->version = System::getVersion();
|
||||
$result->operatingSystem = $redhat;
|
||||
$result->webServer = getenv('SERVER_SOFTWARE');
|
||||
$result->serverName = getenv('SERVER_NAME');
|
||||
@@ -2078,4 +2079,4 @@ class wsBase
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user