Enabled OAuth/OAuth2 logins

This commit is contained in:
Deon George
2013-05-27 22:10:41 +10:00
parent 7dd64e68bf
commit d4a2ace403
82 changed files with 3052 additions and 154 deletions

View File

@@ -19,7 +19,7 @@ class Model_Oauth extends ORM_OSB {
* Return the object of the OAuth plugin
*/
public function plugin($type='') {
$c = Kohana::classname('Oauth_Plugin_'.$this->name);
$c = 'OAuth_Plugin_'.ucfirst($this->name);
if (! $this->name OR ! class_exists($c))
return NULL;