Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

Commit

Permalink
Merge pull request #5 from SURFnet/joostd-patch-1
Browse files Browse the repository at this point in the history
remove static call to Tiqr_Response_Abstract::createResponse()
  • Loading branch information
ijansch committed Nov 9, 2016
2 parents cff53b5 + cb3f4f4 commit 62f9d22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Auth/Tiqr.php
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,8 @@ public static function getResponse()
{
// check if the client supports json, if not fallback to the plain text
if (self::getProtocolVersion(true) > 1) {
return Tiqr_Response_Abstract::createResponse();
$v1 = new Tiqr_Response_V1(); // TODO: this is the only concrete class?
return $v1->createResponse();
} else {
return new sspmod_authTiqr_Response_Plain();
}
Expand Down

0 comments on commit 62f9d22

Please sign in to comment.