mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Merge pull request #3484 from dereuromark/master-hotfix-bake
Hotfix for older baked templates regarding postLink()
This commit is contained in:
commit
2259309580
1 changed files with 1 additions and 1 deletions
|
@ -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__;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue