Permalink
Browse files

Return control to original script after including a custom script. Al…

…lows

more flexibility to add code to a page. If the original is to be completely
replaced, the custom script must explicitly exit.
Credit to Eloy.
  • Loading branch information...
ikawhero
ikawhero committed Jul 15, 2005
1 parent ee70824 commit 2b0b32d8fef11a76ac4f1c416d2b5039250f0d70
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/setup.php
View
@@ -450,8 +450,7 @@ class object {};
/// Use a custom script replacement if one exists
if (!empty($CFG->customscripts)) {
if (($customscript = custom_script_path()) !== false) {
- include ($customscript);
- exit;
+ require ($customscript);
}
}

0 comments on commit 2b0b32d

Please sign in to comment.