Skip to content

Commit 8604994

Browse files
committed
fix(login): typo + add php-cs-fixer to gitignore
1 parent 78a2e95 commit 8604994

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
.php-cs-fixer.cache
12
vendor

actions/LoginAction__.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public function run()
2323
// we default on current stable Yunohost's version urls
2424
$loginUrl = 'https://'.$this->params->get('yunohost_sso_domain').'/yunohost/sso/login?r='.$encodedUrl;
2525
$logoutUrl = 'https://'.$this->params->get('yunohost_sso_domain').'/yunohost/portalapi/logout?referer_redirect';
26-
;
27-
if ($majorYunohostVersion == '11') {
26+
;
27+
if ($majorYunohostVersion == '11') {
2828
// backward compatibility
2929
$loginUrl = 'https://'.$this->params->get('yunohost_sso_domain').'/yunohost/sso/?r='.$encodedUrl;
3030
$logoutUrl = 'https://'.$this->params->get('yunohost_sso_domain').'/yunohost/sso/?action=logout&r='.$encodedUrl;
@@ -38,7 +38,7 @@ public function run()
3838
$this->output
3939
);
4040
} else {
41-
$this->output = '<a href="''.$loginUrl.'" class="btn btn-default btn->
41+
$this->output = '<a href="'.$loginUrl.'" class="btn btn-default btn->
4242
<i class="glyphicon glyphicon-user"></i> '._t('LOGIN_LOGIN').'</a>';
4343
}
4444
}

0 commit comments

Comments
 (0)