mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Hotfix for older baked templates regarding postLink()
This commit is contained in:
parent
418c0a7b7c
commit
8af76a3705
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
|
||||
*/
|
||||
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'])) {
|
||||
$options['block'] = __FUNCTION__;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue