Skip to content
Snippets Groups Projects
Commit 4a8b5d37 authored by Demian Katz's avatar Demian Katz Committed by GitHub
Browse files

Revert "Add related config fallback" (#753)

parent 73a0178a
Branches
Tags
No related merge requests found
...@@ -375,12 +375,8 @@ abstract class AbstractBase implements \VuFind\Db\Table\DbTableAwareInterface, ...@@ -375,12 +375,8 @@ abstract class AbstractBase implements \VuFind\Db\Table\DbTableAwareInterface,
public function getRelated(\VuFind\Related\PluginManager $factory, $types = null) public function getRelated(\VuFind\Related\PluginManager $factory, $types = null)
{ {
if (is_null($types)) { if (is_null($types)) {
if (isset($this->recordConfig->Record->related)) { $types = isset($this->recordConfig->Record->related) ?
$types = $this->recordConfig->Record->related; $this->recordConfig->Record->related : [];
} else {
$types = isset($this->mainConfig->Record->related) ?
$this->mainConfig->Record->related : [];
}
} }
$retVal = []; $retVal = [];
foreach ($types as $current) { foreach ($types as $current) {
......
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