Skip to content

Commit

Permalink
Insert space, wrongfully removed
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmayer committed Dec 13, 2016
1 parent db46f69 commit aa4854b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions components/com_finder/helpers/route.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static function getSearchRoute($f = null, $q = null)
$item = self::getItemid($query);

// Get the base route.
$uri = cloneJUri::getInstance('index.php?option=com_finder&view=search');
$uri = clone JUri::getInstance('index.php?option=com_finder&view=search');

// Add the pre-defined search filter if present.
if ($f !== null)
Expand Down Expand Up @@ -73,7 +73,7 @@ public static function getAdvancedRoute($f = null, $q = null)
$item = self::getItemid($query);

// Get the base route.
$uri = cloneJUri::getInstance('index.php?option=com_finder&view=advanced');
$uri = clone JUri::getInstance('index.php?option=com_finder&view=advanced');

// Add the pre-defined search filter if present.
if ($q !== null)
Expand Down
14 changes: 7 additions & 7 deletions components/com_finder/models/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ protected function getListQuery()
// Use the cached data if possible.
if ($this->retrieve($store, false))
{
return clone$this->retrieve($store, false);
return clone $this->retrieve($store, false);
}

// Set variables
Expand Down Expand Up @@ -307,7 +307,7 @@ protected function getListQuery()
$this->store($store, $query, false);

// Return a copy of the query object.
return clone$this->retrieve($store, false);
return clone $this->retrieve($store, false);
}

/**
Expand Down Expand Up @@ -343,7 +343,7 @@ protected function getResultsTotal()
if (empty($this->includedTerms))
{
// Adjust the query to join on the appropriate mapping table.
$query = clone$base;
$query = clone $base;
$query->clear('select')
->select('COUNT(DISTINCT l.link_id)');

Expand Down Expand Up @@ -416,7 +416,7 @@ protected function getResultsTotal()
else
{
// Adjust the query to join on the appropriate mapping table.
$query = clone$base;
$query = clone $base;
$query->join('INNER', '#__finder_links_terms' . $suffix . ' AS m ON m.link_id = l.link_id')
->where('m.term_id IN (' . implode(',', $ids) . ')');

Expand Down Expand Up @@ -527,7 +527,7 @@ protected function getResultsTotal()
$suffix = StringHelper::substr(md5(StringHelper::substr($token, 0, 1)), 0, 1);

// Adjust the query to join on the appropriate mapping table.
$query = clone$base;
$query = clone $base;
$query->join('INNER', '#__finder_links_terms' . $suffix . ' AS m ON m.link_id = l.link_id')
->where('m.term_id IN (' . implode(',', $required) . ')');

Expand Down Expand Up @@ -695,7 +695,7 @@ protected function getResultsData()
else
{
// Adjust the query to join on the appropriate mapping table.
$query = clone$base;
$query = clone $base;
$query->join('INNER', $this->_db->quoteName('#__finder_links_terms' . $suffix) . ' AS m ON m.link_id = l.link_id')
->where('m.term_id IN (' . implode(',', $ids) . ')');

Expand Down Expand Up @@ -848,7 +848,7 @@ protected function getResultsData()
$suffix = StringHelper::substr(md5(StringHelper::substr($token, 0, 1)), 0, 1);

// Adjust the query to join on the appropriate mapping table.
$query = clone$base;
$query = clone $base;
$query->join('INNER', $this->_db->quoteName('#__finder_links_terms' . $suffix) . ' AS m ON m.link_id = l.link_id')
->where('m.term_id IN (' . implode(',', $required) . ')');

Expand Down

0 comments on commit aa4854b

Please sign in to comment.