summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2006-07-31 19:24:16 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2006-07-31 19:24:16 +0000
commit90acf993417f3109536f4d95f3acdb12065e1631 (patch)
tree917d2e41bb8797583e2994df0b529333a75eb02e /install.php
parent2cc410304d21aec3cd26c0573c3952c36260a188 (diff)
downloadbrdo-90acf993417f3109536f4d95f3acdb12065e1631.tar.gz
brdo-90acf993417f3109536f4d95f3acdb12065e1631.tar.bz2
#75264: Redirect uninstalled default Drupal site to install.php
Diffstat (limited to 'install.php')
-rw-r--r--install.php18
1 files changed, 2 insertions, 16 deletions
diff --git a/install.php b/install.php
index a37ffa773..4189c22bc 100644
--- a/install.php
+++ b/install.php
@@ -1,7 +1,6 @@
<?php
// $Id$
-$install = TRUE;
require_once './includes/install.inc';
/**
@@ -49,7 +48,7 @@ function install_main() {
$profile = preg_replace('/[^a-zA-Z_0-9]/', '', $_GET['profile']);
}
elseif ($profile = install_select_profile()) {
- _install_goto("install.php?profile=$profile");
+ install_goto("install.php?profile=$profile");
}
else {
_install_no_profile_error();
@@ -291,7 +290,7 @@ function install_settings_submit($form_id, $form_values) {
drupal_rewrite_settings($settings);
// Continue to install profile step
- _install_goto("install.php?profile=$profile");
+ install_goto("install.php?profile=$profile");
}
/**
@@ -401,17 +400,4 @@ function install_complete($profile) {
print theme('maintenance_page', $output);
}
-/**
- * Send the user to a different installer page. This issues an on-site HTTP
- * redirect. Messages (and errors) are erased.
- *
- * @param $path
- * An installer path.
- */
-function _install_goto($path) {
- global $base_path;
- header('Location: '. $base_path . $path);
- exit();
-}
-
install_main();