1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-26 05:32:59 +00:00

Cleanup: Delete rogue exit() call from raw action

This commit is contained in:
Starbeamrainbowlabs 2016-10-18 18:47:41 +01:00
parent 9883b58379
commit eace10e497
3 changed files with 1 additions and 3 deletions

View file

@ -1624,7 +1624,6 @@ register_module([
header("content-type: text/markdown"); header("content-type: text/markdown");
exit(file_get_contents($env->page_filename)); exit(file_get_contents($env->page_filename));
exit();
}); });
add_help_section("800-raw-page-content", "Viewing Raw Page Content", "<p>Although you can use the edit page to view a page's source, you can also ask $settings->sitename to send you the raw page source and nothing else. This feature is intented for those who want to automate their interaction with $settings->sitename.</p> add_help_section("800-raw-page-content", "Viewing Raw Page Content", "<p>Although you can use the edit page to view a page's source, you can also ask $settings->sitename to send you the raw page source and nothing else. This feature is intented for those who want to automate their interaction with $settings->sitename.</p>

View file

@ -23,7 +23,7 @@
"author": "Starbeamrainbowlabs", "author": "Starbeamrainbowlabs",
"description": "Adds a 'raw' action that shows you the raw source of a page.", "description": "Adds a 'raw' action that shows you the raw source of a page.",
"id": "action-raw", "id": "action-raw",
"lastupdate": 1476812652, "lastupdate": 1476812825,
"optional": false "optional": false
}, },
{ {

View file

@ -28,7 +28,6 @@ register_module([
header("content-type: text/markdown"); header("content-type: text/markdown");
exit(file_get_contents($env->page_filename)); exit(file_get_contents($env->page_filename));
exit();
}); });
add_help_section("800-raw-page-content", "Viewing Raw Page Content", "<p>Although you can use the edit page to view a page's source, you can also ask $settings->sitename to send you the raw page source and nothing else. This feature is intented for those who want to automate their interaction with $settings->sitename.</p> add_help_section("800-raw-page-content", "Viewing Raw Page Content", "<p>Although you can use the edit page to view a page's source, you can also ask $settings->sitename to send you the raw page source and nothing else. This feature is intented for those who want to automate their interaction with $settings->sitename.</p>