Commit 915913c6 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(management) Fix static call syntax for PHP 5.6

Showing with 2 additions and 2 deletions
+2 -2
...@@ -91,7 +91,7 @@ class managementFilter ...@@ -91,7 +91,7 @@ class managementFilter
$smarty->assign('SEARCH', $this->search); $smarty->assign('SEARCH', $this->search);
$smarty->assign('SEARCHDESC', sprintf(_('Searches in %s'), implode(', ', $this->searchAttributes))); $smarty->assign('SEARCHDESC', sprintf(_('Searches in %s'), implode(', ', $this->searchAttributes)));
$smarty->assign('TYPES', $this->types); $smarty->assign('TYPES', $this->types);
if (!$this->parent::$skipTemplates) { if (!get_class($this->parent)::$skipTemplates) {
$smarty->assign('TEMPLATES', $this->showTemplates); $smarty->assign('TEMPLATES', $this->showTemplates);
} }
...@@ -161,7 +161,7 @@ class managementFilter ...@@ -161,7 +161,7 @@ class managementFilter
$entries[$dn] = new ListingEntry($this->parent->listing, $type, $dn, $entry, $row++); $entries[$dn] = new ListingEntry($this->parent->listing, $type, $dn, $entry, $row++);
} }
if (!$this->parent::$skipTemplates && $this->showTemplates) { if (!get_class($this->parent)::$skipTemplates && $this->showTemplates) {
$ldapEntries = objects::ls($type, $attrsAsked, (($this->scope == 'one') ? 'ou=templates,'.$base : $base), $filter, TRUE, $this->scope, TRUE); $ldapEntries = objects::ls($type, $attrsAsked, (($this->scope == 'one') ? 'ou=templates,'.$base : $base), $filter, TRUE, $this->scope, TRUE);
$objectTypeCount['template_'.$type] = count($ldapEntries); $objectTypeCount['template_'.$type] = count($ldapEntries);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment