Sync: remove forgotten $db's

This commit is contained in:
Thomas Gelf 2016-02-23 11:59:25 +01:00
parent 22e3d72014
commit ff7e243370
1 changed files with 3 additions and 4 deletions

View File

@ -435,13 +435,12 @@ class Sync
protected function prepare()
{
$rule = $this->rule;
$db = $this->db;
$properties = $rule->fetchSyncProperties();
$sources = $this->perpareImportSources($properties, $db);
$imported = $this->fetchImportedData($sources, $properties, $rule, $db);
$sources = $this->perpareImportSources($properties);
$imported = $this->fetchImportedData($sources, $properties);
// TODO: Make object_type (template, object...) and object_name mandatory?
$objects = IcingaObject::loadAllByType($rule->object_type, $db);
$objects = IcingaObject::loadAllByType($rule->object_type, $this->db);
// TODO: should be obsoleted by a better "loadFiltered" method
if ($rule->object_type === 'datalistEntry') {