Skip to content

Commit

Permalink
Return control to original script after including a custom script. Al…
Browse files Browse the repository at this point in the history
…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 committed Jul 15, 2005
1 parent ee70824 commit 2b0b32d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/setup.php
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 2b0b32d

Please sign in to comment.