diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/bootstrap.inc | 2 | ||||
-rw-r--r-- | includes/database.inc | 4 | ||||
-rw-r--r-- | includes/image.inc | 4 | ||||
-rw-r--r-- | includes/theme.inc | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index f29a9b6be..db111b428 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -460,7 +460,7 @@ function drupal_load($type, $name) { $filename = drupal_get_filename($type, $name); if ($filename) { - include_once($filename); + include_once "./$filename"; $files[$type][$name] = TRUE; return TRUE; diff --git a/includes/database.inc b/includes/database.inc index 42d186585..0fe82d247 100644 --- a/includes/database.inc +++ b/includes/database.inc @@ -110,10 +110,10 @@ function db_set_active($name = 'default') { } $db_type = substr($connect_url, 0, strpos($connect_url, '://')); - $handler = "includes/database.$db_type.inc"; + $handler = "./includes/database.$db_type.inc"; if (is_file($handler)) { - include_once($handler); + include_once $handler; } else { drupal_maintenance_theme(); diff --git a/includes/image.inc b/includes/image.inc index 1b1301a2c..9dea8d52c 100644 --- a/includes/image.inc +++ b/includes/image.inc @@ -11,7 +11,7 @@ function image_get_available_toolkits() { $output = array(); foreach ($toolkits as $file => $toolkit) { - include_once($file); + include_once "./$file"; $function = str_replace('.', '_', $toolkit->name) .'_info'; if (function_exists($function)) { $info = $function(); @@ -31,7 +31,7 @@ function image_get_toolkit() { static $toolkit; if (!$toolkit) { $toolkit = variable_get('image_toolkit', 'gd'); - $toolkit_file = 'includes/image.'.$toolkit.'.inc'; + $toolkit_file = './includes/image.'.$toolkit.'.inc'; if ($toolkit != 'gd' && file_exists($toolkit_file)) { include_once $toolkit_file; } diff --git a/includes/theme.inc b/includes/theme.inc index d6ded08ed..7a7e7e66f 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -68,11 +68,11 @@ function init_theme() { if (strpos($themes[$theme]->filename, '.theme')) { // file is a theme; include it - include_once($themes[$theme]->filename); + include_once './' . $themes[$theme]->filename; } elseif (strpos($themes[$theme]->description, '.engine')) { // file is a template; include its engine - include_once($themes[$theme]->description); + include_once './' . $themes[$theme]->description; $theme_engine = basename($themes[$theme]->description, '.engine'); if (function_exists($theme_engine .'_init')) { call_user_func($theme_engine .'_init', $themes[$theme]); |