Skip to content

Commit

Permalink
Merge pull request #46 from ozee31/patch-2
Browse files Browse the repository at this point in the history
Use Flash component instead of Session->setFlash
  • Loading branch information
markstory committed Oct 25, 2017
2 parents c4078c1 + 732d5b4 commit 8e4ad76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/AclExtras.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ public function startup($controller = null) {

public function out($msg) {
if (!empty($this->controller->Session)) {
$this->controller->Session->setFlash($msg);
$this->controller->Flash->set($msg);
} else {
return $this->Shell->out($msg);
}
}

public function err($msg) {
if (!empty($this->controller->Session)) {
$this->controller->Session->setFlash($msg);
$this->controller->Flash->set($msg);;
} else {
return $this->Shell->err($msg);
}
Expand Down

0 comments on commit 8e4ad76

Please sign in to comment.