diff --git a/core/100-run.php b/core/100-run.php index 3f69ff1..e70d024 100644 --- a/core/100-run.php +++ b/core/100-run.php @@ -54,5 +54,3 @@ if(isset($actions->$action_name)) { else { exit(page_renderer::render_main("Error - $settings->sitename", "

No action called " . strtolower($_GET["action"]) ." has been registered. Perhaps you are missing a module?

")); } - -__halt_compiler(); diff --git a/pack.php b/pack.php index 07d3bec..f8c25f1 100644 --- a/pack.php +++ b/pack.php @@ -126,7 +126,11 @@ else { $output_stream = fopen("php://output", "w"); } +// Write the built code fwrite($output_stream, $result); +// Write the delimiter +fwrite($output_stream, "__halt_compiler();"); +// Write the extra data stream_copy_to_stream($archive_stream, $output_stream); ?>