Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #240 from mirko-pagliai/develop
Browse files Browse the repository at this point in the history
fixed deprecation
  • Loading branch information
mirko-pagliai authored Dec 23, 2020
2 parents 47006bb + 7bbaad4 commit 158d00e
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 123 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
.directory
.idea
.phpunit.result.cache
*_old
*.lock
*.old.*
bin/
composer.lock
coverage/
plugins/
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
to use with other plugins;
* fixed old bug on loading theme plugins;
* fixed little bug for the `description` field for `Banner` and `Photo` entities;
* added `cake` binaries and fixed composer script to extract POT files;
* fixed composer script to extract POT files;
* updated for `php-tools` 1.4.5;
* removed redundant code in routes;
* added `phpstan`, so fixed some code and descriptions.
Expand Down
75 changes: 0 additions & 75 deletions bin/cake

This file was deleted.

27 changes: 0 additions & 27 deletions bin/cake.bat

This file was deleted.

16 changes: 0 additions & 16 deletions bin/cake.php

This file was deleted.

4 changes: 2 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,5 @@ parameters:
path: tests/TestCase/Mailer

-
message: '#^Property [\w\\]+::\$Posts \(MeCms\\Model\\Table\\PostsTable\|PHPUnit\\Framework\\MockObject\\MockObject\) does not accept Cake\\ORM\\Table\.#'
path: tests/TestCase/Model/Table/Traits
message: '#^Property [\w\\]+::\$\w+ \([\w\\\|]*PHPUnit\\Framework\\MockObject\\MockObject\) does not accept Cake\\ORM\\Table\.#'
path: tests/TestCase/Model
4 changes: 2 additions & 2 deletions src/Controller/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ protected function sendActivationMail(User $user): bool
$token = $this->Token->create($user->get('email'), ['type' => 'signup', 'user_id' => $user->get('id')]);

return (bool)$this->getMailer('MeCms.User')
->set('url', Router::url(['_name' => 'activation', (string)$user->get('id'), $token], true))
->setViewVars('url', Router::url(['_name' => 'activation', (string)$user->get('id'), $token], true))
->send('activation', [$user]);
}

Expand Down Expand Up @@ -286,7 +286,7 @@ public function passwordForgot()
if ($user) {
$token = $this->Token->create($email, ['type' => 'password_forgot', 'user_id' => $user->get('id')]);
$this->getMailer('MeCms.User')
->set('url', Router::url(['_name' => 'passwordReset', (string)$user->get('id'), $token], true))
->setViewVars('url', Router::url(['_name' => 'passwordReset', (string)$user->get('id'), $token], true))
->send('passwordForgot', [$user]);
$this->Flash->success(__d('me_cms', 'We have sent you an email to reset your password'));

Expand Down

0 comments on commit 158d00e

Please sign in to comment.