public function getVersion($app = null, $number = false)
{
if (empty($app)) {
$app = $this->getApp();
}
try {
$api = $this->getApiInstance($app, 'application');
} catch (Horde_Exception $e) {
return 'unknown';
}
return $number ? preg_replace('/H\\d \\((.*)\\)/', '$1', $api->version) : $api->version;
}