mirror of
https://github.com/Icinga/icingaweb2-module-graphite.git
synced 2026-06-09 08:51:21 -04:00
parent
8f11f64c45
commit
a41f6fb882
1 changed files with 7 additions and 1 deletions
|
|
@ -3,6 +3,7 @@
|
|||
namespace Icinga\Module\Graphite\Graphing;
|
||||
|
||||
use Icinga\Application\Config;
|
||||
use Icinga\Application\Icinga;
|
||||
use Icinga\Exception\ConfigurationError;
|
||||
use Icinga\Web\Url;
|
||||
|
||||
|
|
@ -30,7 +31,12 @@ trait GraphingTrait
|
|||
protected static function getAllTemplates()
|
||||
{
|
||||
if (static::$allTemplates === null) {
|
||||
$allTemplates = new Templates();
|
||||
$allTemplates = (new Templates())->loadDir(
|
||||
Icinga::app()
|
||||
->getModuleManager()
|
||||
->getModule('graphite')
|
||||
->getBaseDir() . DIRECTORY_SEPARATOR . 'templates'
|
||||
);
|
||||
|
||||
$path = Config::resolvePath('modules/graphite/templates');
|
||||
if (file_exists($path)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue