fix views

This commit is contained in:
Antonio Ramirez
2016-12-11 00:56:05 +01:00
parent 005ab4f1b8
commit 1ebe58d2ce
25 changed files with 238 additions and 302 deletions

View File

@ -135,7 +135,8 @@ class SecurityController extends Controller
$this->make(SocialNetworkAuthenticateService::class, [$this, $this->action, $client])->run();
}
public function connect(AuthClientInterface $client) {
public function connect(AuthClientInterface $client)
{
if (Yii::$app->user->isGuest) {
Yii::$app->session->setFlash('danger', Yii::t('user', 'Something went wrong'));

View File

@ -199,7 +199,7 @@ class SettingsController extends Controller
public function actionDelete()
{
if (!$this->module->enableAccountDelete) {
if (!$this->module->allowAccountDelete) {
throw new NotFoundHttpException(\Yii::t('user', 'Not found'));
}