| Versionen | |
|---|---|
| drupal7 | _db_check_install_needed() |
Redirect the user to the installation script if Drupal has not been installed yet (i.e., if no $databases array has been defined in the settings file) and we are not already there. Otherwise, do nothing.
includes/
<?php
function _db_check_install_needed() {
global $databases;
if (empty($databases) && !function_exists('install_main')) {
include_once DRUPAL_ROOT . '/includes/install.inc';
install_goto('install.php');
}
}
?>
Kommentare
Kommentar hinzufügen