Enabled search, added lodash and other minor improvements
This commit is contained in:
@@ -175,6 +175,11 @@ abstract class lnApp_Controller_TemplateDefault extends Controller_Template {
|
||||
$this->response->bodyadd(sprintf('<table class="content"><tr><td>%s</td></tr></table>',$this->template->content));
|
||||
}
|
||||
|
||||
// Used by our javascript to know what the SITE URL is.
|
||||
Script::factory()
|
||||
->type('stdin')
|
||||
->data('var site_url="'.URL::site('',TRUE).'";');
|
||||
|
||||
parent::after();
|
||||
|
||||
// Generate and check the ETag for this file
|
||||
|
@@ -29,5 +29,14 @@ abstract class lnApp_Meta {
|
||||
|
||||
$this->_data[$key] = $value;
|
||||
}
|
||||
|
||||
public function secure() {
|
||||
static $secure = NULL;
|
||||
|
||||
if (! $secure)
|
||||
$secure = Request::current()->secure() ? 'https://' : 'http://';
|
||||
|
||||
return $secure;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user