Skip to content

Commit

Permalink
Fix undefined variable (matomo-org#13067)
Browse files Browse the repository at this point in the history
  • Loading branch information
c960657 authored and InfinityVoid committed Oct 11, 2018
1 parent 915a93d commit 03b3870
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/CoreAdminHome/OptOutManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function __construct(DoNotTrackHeaderChecker $doNotTrackHeaderChecker = n
* @param string $javascript
* @param bool $inline
*/
public function addJavascript($javascript, $inline = true)
public function addJavaScript($javascript, $inline = true)
{
$type = $inline ? 'inline' : 'external';
$this->javascripts[$type][] = $javascript;
Expand All @@ -71,7 +71,7 @@ public function addJavascript($javascript, $inline = true)
/**
* @return array
*/
public function getJavascripts()
public function getJavaScripts()
{
return $this->javascripts;
}
Expand Down Expand Up @@ -203,7 +203,7 @@ public function getOptOutView()

$this->view = new View("@CoreAdminHome/optOut");

$this->addJavaScript('plugins/CoreAdminHome/javascripts/optOut.js', $false);
$this->addJavaScript('plugins/CoreAdminHome/javascripts/optOut.js', false);

$this->view->setXFrameOptions('allow');
$this->view->dntFound = $dntFound;
Expand All @@ -212,7 +212,7 @@ public function getOptOutView()
$this->view->language = $lang;
$this->view->showConfirmOnly = Common::getRequestVar('showConfirmOnly', false, 'int');
$this->view->reloadUrl = $reloadUrl;
$this->view->javascripts = $this->getJavascripts();
$this->view->javascripts = $this->getJavaScripts();
$this->view->stylesheets = $this->getStylesheets();
$this->view->title = $this->getTitle();
$this->view->queryParameters = $this->getQueryParameters();
Expand Down

0 comments on commit 03b3870

Please sign in to comment.