Skip to content

Commit

Permalink
Fix static method invocation via ->
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmayer committed Oct 2, 2016
1 parent e563437 commit 8cee0d2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions administrator/components/com_finder/controllers/indexer.json.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function start()
$app->setHeader('Pragma', 'no-cache');

// Check for a valid token. If invalid, send a 403 with the error message.
JSession::checkToken('request') or $this->sendResponse(new Exception(JText::_('JINVALID_TOKEN'), 403));
JSession::checkToken('request') or static::sendResponse(new Exception(JText::_('JINVALID_TOKEN'), 403));

// Put in a buffer to silence noise.
ob_start();
Expand All @@ -74,12 +74,12 @@ public function start()
$state->start = 1;

// Send the response.
$this->sendResponse($state);
static::sendResponse($state);
}
// Catch an exception and return the response.
catch (Exception $e)
{
$this->sendResponse($e);
static::sendResponse($e);
}
}

Expand Down Expand Up @@ -112,7 +112,7 @@ public function batch()
$app->setHeader('Pragma', 'no-cache');

// Check for a valid token. If invalid, send a 403 with the error message.
JSession::checkToken('request') or $this->sendResponse(new Exception(JText::_('JINVALID_TOKEN'), 403));
JSession::checkToken('request') or static::sendResponse(new Exception(JText::_('JINVALID_TOKEN'), 403));

// Put in a buffer to silence noise.
ob_start();
Expand Down Expand Up @@ -187,7 +187,7 @@ public function batch()
$app = $admin;

// Send the response.
$this->sendResponse($state);
static::sendResponse($state);
}
// Catch an exception and return the response.
catch (Exception $e)
Expand All @@ -196,7 +196,7 @@ public function batch()
$doc = $raw;

// Send the response.
$this->sendResponse($e);
static::sendResponse($e);
}
}

Expand All @@ -217,7 +217,7 @@ public function optimize()
$app->setHeader('Pragma', 'no-cache');

// Check for a valid token. If invalid, send a 403 with the error message.
JSession::checkToken('request') or $this->sendResponse(new Exception(JText::_('JINVALID_TOKEN'), 403));
JSession::checkToken('request') or static::sendResponse(new Exception(JText::_('JINVALID_TOKEN'), 403));

// Put in a buffer to silence noise.
ob_start();
Expand All @@ -236,12 +236,12 @@ public function optimize()
$state->complete = 1;

// Send the response.
$this->sendResponse($state);
static::sendResponse($state);
}
// Catch an exception and return the response.
catch (Exception $e)
{
$this->sendResponse($e);
static::sendResponse($e);
}
}

Expand Down

0 comments on commit 8cee0d2

Please sign in to comment.