Skip to content

Commit

Permalink
MDL-29474 admin/index.php consistent use of die();
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Oct 20, 2011
1 parent faadd32 commit 3ba2858
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions admin/index.php
Expand Up @@ -26,7 +26,7 @@
// Check that config.php exists, if not then call the install script
if (!file_exists('../config.php')) {
header('Location: ../install.php');
die;
die();
}

// Check that PHP is of a sufficient version as soon as possible
Expand All @@ -35,7 +35,7 @@
// do NOT localise - lang strings would not work here and we CAN NOT move it to later place
echo "Moodle 2.1 or later requires at least PHP 5.3.2 (currently using version $phpversion).<br />";
echo "Please upgrade your server software or install older Moodle version.";
die;
die();
}

// make sure iconv is available and actually works
Expand All @@ -47,7 +47,7 @@
if (iconv('UTF-8', 'UTF-8//IGNORE', 'abc') !== 'abc') {
// known to be broken in mid-2011 MAMP installations
echo 'Broken iconv PHP extension detected, installation/upgrade can not continue.';
die;
die();
}

define('NO_OUTPUT_BUFFERING', true);
Expand Down Expand Up @@ -134,7 +134,7 @@

$output = $PAGE->get_renderer('core', 'admin');
echo $output->install_licence_page();
die;
die();
}
if (empty($confirmrelease)) {
require_once($CFG->libdir.'/environmentlib.php');
Expand All @@ -148,7 +148,7 @@

$output = $PAGE->get_renderer('core', 'admin');
echo $output->install_environment_page($maturity, $envstatus, $environment_results);
die;
die();
}

$strdatabasesetup = get_string('databasesetup');
Expand Down Expand Up @@ -199,7 +199,7 @@

$output = $PAGE->get_renderer('core', 'admin');
echo $output->upgrade_confirm_page($a->newversion, $maturity);
exit;
die();

} else if (empty($confirmrelease)){
require_once($CFG->libdir.'/environmentlib.php');
Expand Down

0 comments on commit 3ba2858

Please sign in to comment.