mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 06:44:33 +02:00
Return unprefixed Icinga version in MonitoringBackend::getProgramVersion()
This commit is contained in:
parent
293dd2b576
commit
8f9920f1fc
@ -339,7 +339,7 @@ class MonitoringBackend implements Selectable, Queryable, ConnectionInterface
|
|||||||
*/
|
*/
|
||||||
public function getProgramVersion()
|
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…
x
Reference in New Issue
Block a user