Fixed reference to $this.

pull/57/merge
Mike Cao 11 years ago
parent 001c8ec301
commit 86d1ea20e4

@ -274,6 +274,7 @@ class Engine {
*/ */
public function _start() { public function _start() {
$dispatched = false; $dispatched = false;
$self = $this;
// Flush any existing output // Flush any existing output
if (ob_get_length() > 0) { if (ob_get_length() > 0) {
@ -292,8 +293,8 @@ class Engine {
} }
// Allow post-filters to run // Allow post-filters to run
$this->after('start', function() { $this->after('start', function() use ($self) {
$this->stop(); $self->stop();
}); });
// Route the request // Route the request

Loading…
Cancel
Save