Skip to content

Commit

Permalink
Removed unused call and variable.
Browse files Browse the repository at this point in the history
Also Todo'd two things for someone to check
  • Loading branch information
frankmayer committed Oct 2, 2016
1 parent ceb6a45 commit 2897582
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ public function batch()

// Get the HTML document.
$html = JDocument::getInstance('html', $attributes);

//todo: Why is this document fetched and immediately overwritten?
$doc = JFactory::getDocument();

// Swap the documents.
Expand All @@ -164,6 +166,8 @@ public function batch()

// Swap the app.
$app = JFactory::getApplication();

//todo: Why is the app fetched and immediately overwritten?
$app = $site;

// Start the indexer.
Expand Down
1 change: 0 additions & 1 deletion components/com_finder/models/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,6 @@ protected function populateState($ordering = null, $direction = null)
$input = $app->input;
$params = $app->getParams();
$user = JFactory::getUser();
$filter = JFilterInput::getInstance();

$this->setState('filter.language', JLanguageMultilang::isEnabled());

Expand Down

0 comments on commit 2897582

Please sign in to comment.