Skip to content

Commit

Permalink
Post-installation messages: reset the post-installation message of th…
Browse files Browse the repository at this point in the history
…e correct extension ID, as set in the session
  • Loading branch information
Nicholas K. Dionysopoulos committed Aug 24, 2014
1 parent cd0551c commit c994c61
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions administrator/components/com_postinstall/controllers/message.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,19 @@ class PostinstallControllerMessage extends FOFController
*/
public function reset()
{
/** @var PostinstallModelMessages $model */
$model = $this->getThisModel();

$eid = $this->input->getInt('eid', '700');
$eid = (int)$model->getState('eid', '700', 'int');

if (empty($eid))
{
$eid = 700;
}

$model->resetMessages($eid);

$this->setRedirect('index.php?option=com_postinstall');
$this->setRedirect('index.php?option=com_postinstall&eid=' . $eid);
}

/**
Expand Down

0 comments on commit c994c61

Please sign in to comment.