mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-12-25 14:45:02 +00:00
Move __halt_compiler(); to by dynamically written by pack.php
This commit is contained in:
parent
f63553fb92
commit
55989f11b6
2 changed files with 4 additions and 2 deletions
|
@ -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();
|
||||
|
|
4
pack.php
4
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);
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue