Hotfix for older baked templates regarding postLink()

This commit is contained in:
euromark 2014-05-13 20:51:39 +02:00
parent 418c0a7b7c
commit 8af76a3705

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 * @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) { 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'])) { if (!$options['inline'] && empty($options['block'])) {
$options['block'] = __FUNCTION__; $options['block'] = __FUNCTION__;
} }