Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/3.3.6' into develop
Browse files Browse the repository at this point in the history
Conflicts:
	composer.lock
	system/config/constants.php
	system/docs/CHANGELOG.md
	system/modules/repository/classes/RepositorySettings.php
  • Loading branch information
leofeyer committed Oct 31, 2014
2 parents dcc0432 + 4187975 commit 7dd83d9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Resources/contao/dca/tl_calendar_events.php
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ public function toggleIcon($row, $href, $label, $title, $icon, $attributes)
{
if (strlen(Input::get('tid')))
{
$this->toggleVisibility(Input::get('tid'), (Input::get('state') == 1));
$this->toggleVisibility(Input::get('tid'), (Input::get('state') == 1), (@func_get_arg(12) ?: null));
$this->redirect($this->getReferer());
}

Expand All @@ -998,8 +998,9 @@ public function toggleIcon($row, $href, $label, $title, $icon, $attributes)
* Disable/enable a user group
* @param integer
* @param boolean
* @param \DataContainer
*/
public function toggleVisibility($intId, $blnVisible)
public function toggleVisibility($intId, $blnVisible, DataContainer $dc=null)
{
// Check permissions to edit
Input::setGet('id', $intId);
Expand All @@ -1024,11 +1025,11 @@ public function toggleVisibility($intId, $blnVisible)
if (is_array($callback))
{
$this->import($callback[0]);
$blnVisible = $this->$callback[0]->$callback[1]($blnVisible, $this);
$blnVisible = $this->$callback[0]->$callback[1]($blnVisible, ($dc ?: $this));
}
elseif (is_callable($callback))
{
$blnVisible = $callback($blnVisible, $this);
$blnVisible = $callback($blnVisible, ($dc ?: $this));
}
}
}
Expand Down

0 comments on commit 7dd83d9

Please sign in to comment.