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:
Alexandre Rosenfeld
2011-04-13 16:04:36 -04:00
parent 721a87f6c0
commit f0277f02fb
12 changed files with 62 additions and 101 deletions

View File

@@ -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
}
}