Skip to content
Snippets Groups Projects
Commit 346f4db0 authored by Demian Katz's avatar Demian Katz
Browse files

Removed unused parameters.

parent cd4fbf70
No related merge requests found
...@@ -176,7 +176,7 @@ class JSTree extends AbstractBase ...@@ -176,7 +176,7 @@ class JSTree extends AbstractBase
'recordid' => $node->id 'recordid' => $node->id
], ],
'a_attr' => [ 'a_attr' => [
'href' => $this->getContextualUrl($node, $context, $hierarchyID), 'href' => $this->getContextualUrl($node, $context),
'title' => $node->title 'title' => $node->title
], ],
'type' => $node->type 'type' => $node->type
...@@ -194,13 +194,12 @@ class JSTree extends AbstractBase ...@@ -194,13 +194,12 @@ class JSTree extends AbstractBase
/** /**
* Use the router to build the appropriate URL based on context * Use the router to build the appropriate URL based on context
* *
* @param object $node JSON object of a node/top node * @param object $node JSON object of a node/top node
* @param string $context Record or Collection * @param string $context Record or Collection
* @param string $collectionID Collection ID
* *
* @return string * @return string
*/ */
protected function getContextualUrl($node, $context, $collectionID) protected function getContextualUrl($node, $context)
{ {
if ($context == 'Collection') { if ($context == 'Collection') {
return $this->getUrlFromRouteCache('collection', $node->id) return $this->getUrlFromRouteCache('collection', $node->id)
...@@ -257,7 +256,7 @@ class JSTree extends AbstractBase ...@@ -257,7 +256,7 @@ class JSTree extends AbstractBase
$name = strlen($node->title) > 100 $name = strlen($node->title) > 100
? substr($node->title, 0, 100) . '...' ? substr($node->title, 0, 100) . '...'
: $node->title; : $node->title;
$href = $this->getContextualUrl($node, $context, $hierarchyID); $href = $this->getContextualUrl($node, $context);
$icon = $node->type == 'record' ? 'file-o' : 'folder-open'; $icon = $node->type == 'record' ? 'file-o' : 'folder-open';
$html = '<li'; $html = '<li';
......
...@@ -148,11 +148,9 @@ class DevtoolsController extends \VuFind\Controller\AbstractBase ...@@ -148,11 +148,9 @@ class DevtoolsController extends \VuFind\Controller\AbstractBase
/** /**
* Get text domains for a language. * Get text domains for a language.
* *
* @param string $lang Language to load
*
* @return array * @return array
*/ */
protected function getTextDomains($lang) protected function getTextDomains()
{ {
static $domains = false; static $domains = false;
if (!$domains) { if (!$domains) {
...@@ -182,7 +180,7 @@ class DevtoolsController extends \VuFind\Controller\AbstractBase ...@@ -182,7 +180,7 @@ class DevtoolsController extends \VuFind\Controller\AbstractBase
protected function loadLanguage(ExtendedIni $loader, $lang) protected function loadLanguage(ExtendedIni $loader, $lang)
{ {
$base = $loader->load($lang, null); $base = $loader->load($lang, null);
foreach ($this->getTextDomains($lang) as $domain) { foreach ($this->getTextDomains() as $domain) {
$current = $loader->load($lang, $domain); $current = $loader->load($lang, $domain);
foreach ($current as $k => $v) { foreach ($current as $k => $v) {
if ($k != '@parent_ini') { if ($k != '@parent_ini') {
......
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