Skip to content

Commit 3b92238

Browse files
committed
Fix incorrect formatting for HtmlHelper::link().
Remove deprecated parameter. If you use the `:param:` roles, you have to match them up to the number of arguments in the function. Fixes cakephp#2551
1 parent f8a82ed commit 3b92238

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

en/core-libraries/helpers/html.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ methods of the HtmlHelper and how to use them.
333333
The ``fullBase`` option was added.
334334
Support for :term:`plugin syntax` was added.
335335

336-
.. php:method:: link(string $title, mixed $url = null, array $options = array(), string $confirmMessage = false)
336+
.. php:method:: link(string $title, mixed $url = null, array $options = array())
337337
338338
:param string $title: The text to display as the body of the link.
339339
:param mixed $url: Either the string location, or a :term:`routing array`.
@@ -471,10 +471,10 @@ methods of the HtmlHelper and how to use them.
471471
<img src="/img/recipes/6.jpg" alt="Brownies" />
472472
</a>
473473

474-
.. versionchanged:: 2.4
474+
.. versionchanged:: 2.4
475475
The ``escapeTitle`` option was added.
476476

477-
.. versionchanged:: 2.6
477+
.. versionchanged:: 2.6
478478
The argument ``$confirmMessage`` was deprecated. Use ``confirm`` key
479479
in ``$options`` instead.
480480

0 commit comments

Comments
 (0)