mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fixing stupidity and adding the PHPDoc param
This commit is contained in:
parent
7096495943
commit
d4b91166bc
1 changed files with 2 additions and 1 deletions
|
@ -753,6 +753,7 @@ class HtmlHelper extends AppHelper {
|
|||
* Prepends startText to crumbs array if set
|
||||
*
|
||||
* @param string $startText Text to prepend
|
||||
* @param boolean $escape If the output should be escaped or not
|
||||
* @return array Crumb list including startText (if provided)
|
||||
*/
|
||||
protected function _prepareCrumbs($startText, $escape = true) {
|
||||
|
@ -767,7 +768,7 @@ class HtmlHelper extends AppHelper {
|
|||
$startText += array('url' => '/', 'text' => __d('cake', 'Home'));
|
||||
list($url, $text) = array($startText['url'], $startText['text']);
|
||||
unset($startText['url'], $startText['text']);
|
||||
array_unshift($crumbs, array($text, $url, $startText + array('escape' => $escape));
|
||||
array_unshift($crumbs, array($text, $url, $startText + array('escape' => $escape)));
|
||||
}
|
||||
return $crumbs;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue