mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-05-28 04:02:39 -04:00
Return unprefixed Icinga version in MonitoringBackend::getProgramVersion()
This commit is contained in:
parent
293dd2b576
commit
8f9920f1fc
1 changed files with 1 additions and 1 deletions
|
|
@ -339,7 +339,7 @@ class MonitoringBackend implements Selectable, Queryable, ConnectionInterface
|
|||
*/
|
||||
public function getProgramVersion()
|
||||
{
|
||||
return $this->select()->from('programstatus', array('program_version'))->fetchOne();
|
||||
return preg_replace('/^[vr]/', '', $this->select()->from('programstatus', array('program_version'))->fetchOne());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue