Skip to content

Commit

Permalink
Flash Component was not handling plugin option
Browse files Browse the repository at this point in the history
  • Loading branch information
gmponos authored and markstory committed Oct 18, 2015
1 parent dea3234 commit fd50d19
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Cake/Controller/Component/FlashComponent.php
Expand Up @@ -38,6 +38,7 @@ class FlashComponent extends Component {
'key' => 'flash',
'element' => 'default',
'params' => array(),
'plugin' => '',
);

/**
Expand Down Expand Up @@ -79,7 +80,11 @@ public function set($message, $options = array()) {
list($plugin, $element) = pluginSplit($options['element']);

if ($plugin) {
$options['element'] = $plugin . '.Flash/' . $element;
$options['plugin'] = $plugin;
}

if (!empty($options['plugin'])) {
$options['element'] = $options['plugin'] . '.Flash/' . $element;
} else {
$options['element'] = 'Flash/' . $element;
}
Expand Down

0 comments on commit fd50d19

Please sign in to comment.