mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Reomved doc block comment from FormHelper class.
Corrected change made to the $expires variable git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3358 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
d0d1ce73cd
commit
0e527f46bf
2 changed files with 1 additions and 2 deletions
|
@ -143,7 +143,7 @@ class SecurityComponent extends Object {
|
|||
|
||||
// Add auth key for new form posts
|
||||
$authKey = Security::generateAuthKey();
|
||||
$expires = strtotime('+'.Security::inactiveMins().' seconds');
|
||||
$expires = strtotime('+'.Security::inactiveMins().' minutes');
|
||||
$token = array(
|
||||
'key' => $authKey,
|
||||
'expires' => $expires,
|
||||
|
|
|
@ -64,7 +64,6 @@ class FormHelper extends Helper {
|
|||
* @param string $type FORM type (POST/GET).
|
||||
* @param array $htmlAttributes
|
||||
* @return string An formatted opening FORM tag.
|
||||
* @deprecated This is very WYSIWYG unfriendly, use HtmlHelper::url() to get contents of "action" attribute. Version 0.9.2.
|
||||
*/
|
||||
function create($target = null, $type = 'post', $htmlAttributes = null) {
|
||||
$htmlAttributes['action'] = $this->Html->url($target);
|
||||
|
|
Loading…
Reference in a new issue