1 install.core.inc | install_already_done_error() |
Indicates that Backdrop has already been installed.
File
- core/
includes/ install.core.inc, line 1851 - API functions for installing Backdrop.
Code
function install_already_done_error() {
global $base_url;
backdrop_set_title(st('Backdrop already installed'));
$items = array();
$items[] = st('To start over, you must empty your existing database.');
$settings_php = st('To install to a different database, edit the <em>settings.php</em> file located in the root folder of this site.');
if (conf_path() !== '.') {
$settings_php = st('To install to a different database, edit the <em>settings.php</em> file corresponding to this site within the <em>sites</em> directory.');
}
$items[] = $settings_php;
$items[] = st('To upgrade an existing installation, proceed to the <a href="@base-url/core/update.php">update script</a>.', array('@base-url' => $base_url));
$items[] = st('View your <a href="@base-url">existing site</a>.', array('@base-url' => $base_url));
return theme('item_list', array('items' => $items));
}