From 925db9e25e1f9f85d0427170f5488207ba97ff8a Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Sun, 6 Apr 2014 21:51:03 +0200 Subject: [PATCH] Revert "Revert "Merge pull request #3002 from moberemk/patch-2"" This reverts commit 0d80c92ffbdd2d8eabad11f6be56333aff5a8a0a. --- lib/Cake/View/Helper/HtmlHelper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Cake/View/Helper/HtmlHelper.php b/lib/Cake/View/Helper/HtmlHelper.php index d26ba64f34a..b93594f56a7 100644 --- a/lib/Cake/View/Helper/HtmlHelper.php +++ b/lib/Cake/View/Helper/HtmlHelper.php @@ -174,12 +174,13 @@ public function __construct(View $View, $settings = array()) { * @param string $name Text for link * @param string $link URL for link (if empty it won't be a link) * @param string|array $options Link attributes e.g. array('id' => 'selected') - * @return void + * @return this HtmlHelper * @see HtmlHelper::link() for details on $options that can be used. * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html#creating-breadcrumb-trails-with-htmlhelper */ public function addCrumb($name, $link = null, $options = null) { $this->_crumbs[] = array($name, $link, $options); + return $this; } /**