Added some default ORM/URL functions and theme/login fixes
This commit is contained in:
@@ -40,7 +40,11 @@ class lnApp_Controller_Login extends Controller_TemplateDefault {
|
||||
}
|
||||
}
|
||||
|
||||
$oauthlogin = is_null($x=Session::instance()->get_once('login-no-oauth',NULL)) ? TRUE : ! $x;
|
||||
if (array_key_exists('oauth',Kohana::modules()))
|
||||
$oauthlogin = is_null($x=Session::instance()->get_once('login-no-oauth',NULL)) ? TRUE : ! $x;
|
||||
else
|
||||
$oauthlogin = FALSE;
|
||||
|
||||
$output .= View::factory('pages/login')
|
||||
->set('oauth',$oauthlogin);
|
||||
|
||||
|
@@ -35,6 +35,13 @@ abstract class lnApp_Controller_TemplateDefault extends Kohana_Controller_Templa
|
||||
*/
|
||||
protected $secure_actions = array();
|
||||
|
||||
public function __construct(Request $request, Response $response) {
|
||||
if (Config::theme())
|
||||
$this->template = Config::theme().'/page';
|
||||
|
||||
return parent::__construct($request,$response);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check and see if this controller needs authentication
|
||||
*
|
||||
|
Reference in New Issue
Block a user