From 8d197e4b470023cb10189af88e16407b7a662f70 Mon Sep 17 00:00:00 2001 From: ADmad Date: Sat, 5 Jul 2014 12:53:30 +0530 Subject: [PATCH] Remove $confirmMessage param. Confirmation message can be set using 'confirm' key in options. --- src/View/Helper/HtmlHelper.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/View/Helper/HtmlHelper.php b/src/View/Helper/HtmlHelper.php index 7f90e53dd3d..32db1e7a8da 100644 --- a/src/View/Helper/HtmlHelper.php +++ b/src/View/Helper/HtmlHelper.php @@ -299,11 +299,10 @@ public function charset($charset = null) { * @param string $title The content to be wrapped by tags. * @param string|array $url Cake-relative URL or array of URL parameters, or external URL (starts with http://) * @param array $options Array of options and HTML attributes. - * @param string $confirmMessage JavaScript confirmation message. * @return string An `` element. * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html#HtmlHelper::link */ - public function link($title, $url = null, array $options = array(), $confirmMessage = false) { + public function link($title, $url = null, array $options = array()) { $escapeTitle = true; if ($url !== null) { $url = $this->url($url); @@ -327,7 +326,8 @@ public function link($title, $url = null, array $options = array(), $confirmMess $title = htmlentities($title, ENT_QUOTES, $escapeTitle); } - if (!empty($options['confirm'])) { + $confirmMessage = null; + if (isset($options['confirm'])) { $confirmMessage = $options['confirm']; unset($options['confirm']); }