File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments