Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix undefined variable #13067

Merged
merged 1 commit into from
Jun 16, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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