0001-Always-clear-output-buffer-of-Controller-_kohana_lo.patch
| system/libraries/Controller.php (working copy) | ||
|---|---|---|
| 69 | 69 |
// Views are straight HTML pages with embedded PHP, so importing them |
| 70 | 70 |
// this way insures that $this can be accessed as if the user was in |
| 71 | 71 |
// the controller, which gives the easiest access to libraries in views |
| 72 |
include $kohana_view_filename; |
|
| 72 |
try |
|
| 73 |
{
|
|
| 74 |
include $kohana_view_filename; |
|
| 75 |
} |
|
| 76 |
catch (Exception $e) |
|
| 77 |
{
|
|
| 78 |
ob_end_clean(); |
|
| 79 |
throw $e; |
|
| 80 |
} |
|
| 73 | 81 | |
| 74 | 82 |
// Fetch the output and close the buffer |
| 75 | 83 |
return ob_get_clean(); |
| 76 | 84 |
} |
| 77 | 85 | |
| 78 |
} // End Controller Class |
|
| 86 |
} // End Controller Class |
|