summaryrefslogtreecommitdiff
path: root/modules/system/system.admin.inc
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.admin.inc')
-rw-r--r--modules/system/system.admin.inc14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index 1a177cfef..65554627b 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -485,11 +485,11 @@ function system_theme_settings(&$form_state, $key = '') {
if ($key) {
// Include the theme's theme-settings.php file
- $filename = './' . str_replace("/$key.info", '', $themes[$key]->filename) . '/theme-settings.php';
+ $filename = DRUPAL_ROOT . '/' . str_replace("/$key.info", '', $themes[$key]->filename) . '/theme-settings.php';
if (!file_exists($filename) and !empty($themes[$key]->info['base theme'])) {
// If the theme doesn't have a theme-settings.php file, use the base theme's.
$base = $themes[$key]->info['base theme'];
- $filename = './' . str_replace("/$base.info", '', $themes[$base]->filename) . '/theme-settings.php';
+ $filename = DRUPAL_ROOT . '/' . str_replace("/$base.info", '', $themes[$base]->filename) . '/theme-settings.php';
}
if (file_exists($filename)) {
require_once $filename;
@@ -839,7 +839,7 @@ function system_modules_confirm_form($modules, $storage) {
* Submit callback; handles modules form submission.
*/
function system_modules_submit($form, &$form_state) {
- include_once './includes/install.inc';
+ include_once DRUPAL_ROOT . '/includes/install.inc';
$modules = array();
// If we're not coming from the confirmation form, build the list of modules.
if (!isset($form_state['storage'])) {
@@ -986,7 +986,7 @@ function system_modules_submit($form, &$form_state) {
*/
function system_modules_uninstall($form_state = NULL) {
// Make sure the install API is available.
- include_once './includes/install.inc';
+ include_once DRUPAL_ROOT . '/includes/install.inc';
// Display the confirm form if any modules have been submitted.
if (isset($form_state) && $confirm_form = system_modules_uninstall_confirm_form($form_state['storage'])) {
@@ -1087,7 +1087,7 @@ function system_modules_uninstall_validate($form, &$form_state) {
*/
function system_modules_uninstall_submit($form, &$form_state) {
// Make sure the install API is available.
- include_once './includes/install.inc';
+ include_once DRUPAL_ROOT . '/includes/install.inc';
if (!empty($form['#confirmed'])) {
// Call the uninstall routine for each selected module.
@@ -1769,7 +1769,7 @@ function system_clean_url_settings() {
*/
function system_status($check = FALSE) {
// Load .install files
- include_once './includes/install.inc';
+ include_once DRUPAL_ROOT . '/includes/install.inc';
drupal_load_updates();
// Check run-time requirements and status information.
@@ -1877,7 +1877,7 @@ function system_sql() {
* Default page callback for batches.
*/
function system_batch_page() {
- require_once './includes/batch.inc';
+ require_once DRUPAL_ROOT . '/includes/batch.inc';
$output = _batch_page();
if ($output === FALSE) {
drupal_access_denied();