Skip to content

Commit

Permalink
might not be the best way?
Browse files Browse the repository at this point in the history
  • Loading branch information
brianteeman committed Nov 29, 2021
1 parent ad4dd17 commit 18199dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ function (Toolbar $childBar) use ($checkedOut, $itemEditable, $canDo, $user)

if (PluginHelper::isEnabled('system', 'jooa11y'))
{
$toolbar->jooa11y($url, 'JGLOBAL_JOOA11Y')
$toolbar->jooa11y($url . '?jooa11y=1', 'JGLOBAL_JOOA11Y')
->bodyHeight(80)
->modalWidth(90);
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/system/jooa11y/jooa11y.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private function isAuthorisedDisplayChecker(): bool
public function initJooa11y()
{
// Check if we are in a modal or the plugin enforce loading
$showJooa11y = $this->app->input->get('jooa11y', $this->params->get('showAlways', 0));
$showJooa11y = $this->app->input->getBool('jooa11y', $this->params->get('showAlways', 0));

// Load the checker if authorised
if (!$showJooa11y || !$this->isAuthorisedDisplayChecker())
Expand Down

0 comments on commit 18199dd

Please sign in to comment.