Merge pull request #3484 from dereuromark/master-hotfix-bake

Hotfix for older baked templates regarding postLink()
This commit is contained in:
Mark Story 2014-05-13 16:53:06 -04:00
commit 2259309580

View file

@ -1799,7 +1799,7 @@ class FormHelper extends AppHelper {
* @link http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#FormHelper::postLink
*/
public function postLink($title, $url = null, $options = array(), $confirmMessage = false) {
$options += array('inline' => true, 'block' => null);
$options = (array)$options + array('inline' => true, 'block' => null);
if (!$options['inline'] && empty($options['block'])) {
$options['block'] = __FUNCTION__;
}