Skip to content
Permalink
Browse files

Flash Component was not handling plugin option

  • Loading branch information...
gmponos authored and markstory committed Oct 17, 2015
1 parent dea3234 commit fd50d1976a4f083889f05e1616738510d7cbfe9e
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/Cake/Controller/Component/FlashComponent.php
@@ -38,6 +38,7 @@ class FlashComponent extends Component {
'key' => 'flash',
'element' => 'default',
'params' => array(),
'plugin' => '',
);
/**
@@ -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;
}

0 comments on commit fd50d19

Please sign in to comment.
You can’t perform that action at this time.