1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-24 17:13:01 +00:00

Move __halt_compiler(); to by dynamically written by pack.php

This commit is contained in:
Starbeamrainbowlabs 2019-03-02 16:47:22 +00:00
parent f63553fb92
commit 55989f11b6
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 4 additions and 2 deletions

View file

@ -54,5 +54,3 @@ if(isset($actions->$action_name)) {
else {
exit(page_renderer::render_main("Error - $settings->sitename", "<p>No action called " . strtolower($_GET["action"]) ." has been registered. Perhaps you are missing a module?</p>"));
}
__halt_compiler();

View file

@ -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);
?>