Skip to content

Commit 3c1eda6

Browse files
authored
Update UsersHelper, fix CSS class building
1 parent fe82ef0 commit 3c1eda6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/View/Helper/UserHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function socialLogin($name, $options = [])
5454
$providerTitle = Hash::get($options, 'label') . ' ' . Inflector::camelize($name);
5555
}
5656

57-
$providerClass = 'btn btn-social btn-' . strtolower($name) . (Hash::get($options, 'class')) ? ' ' . Hash::get($options, 'class') : '';
57+
$providerClass = 'btn btn-social btn-' . strtolower($name) . ((Hash::get($options, 'class')) ? ' ' . Hash::get($options, 'class') : '');
5858

5959
return $this->Html->link($icon . $providerTitle, "/auth/$name", [
6060
'escape' => false, 'class' => $providerClass
@@ -198,7 +198,7 @@ public function isAuthorized($url = null)
198198
*/
199199
public function socialConnectLink($name, $provider, $isConnected = false)
200200
{
201-
$linkClass = 'btn btn-social btn-' . strtolower($name) . (Hash::get($provider['options'], 'class')) ? ' ' . Hash::get($provider['options'], 'class') : '';
201+
$linkClass = 'btn btn-social btn-' . strtolower($name) . ((Hash::get($provider['options'], 'class')) ? ' ' . Hash::get($provider['options'], 'class') : '');
202202
if ($isConnected) {
203203
$title = __d('CakeDC/Users', 'Connected with {0}', Inflector::camelize($name));
204204

0 commit comments

Comments
 (0)