? base-kill_0.patch ? base-kill_0.patch.txt ? files ? sites/mwpb-9.local.dpr Index: includes/common.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/common.inc,v retrieving revision 1.509 diff -F^f -u -r1.509 common.inc --- includes/common.inc 22 Jan 2006 07:51:06 -0000 1.509 +++ includes/common.inc 23 Jan 2006 04:37:58 -0000 @@ -114,11 +114,10 @@ function drupal_set_html_head($data = NU * Retrieve output to be displayed in the head tag of the HTML page. */ function drupal_get_html_head() { - global $base_url; + global $base_url_path; $output = "\n"; - $output .= "\n"; - $output .= theme('stylesheet_import', 'misc/drupal.css'); + $output .= theme('stylesheet_import', $base_url_path .'misc/drupal.css'); return $output . drupal_set_html_head(); } @@ -933,7 +932,7 @@ function url($path = NULL, $query = NULL return $path . $fragment; } - global $base_url; + global $base_url, $base_url_path; static $script; static $clean_url; @@ -949,7 +948,7 @@ function url($path = NULL, $query = NULL $clean_url = (bool)variable_get('clean_url', '0'); } - $base = ($absolute ? $base_url .'/' : ''); + $base = ($absolute ? $base_url . '/' : $base_url_path); // The special path '' links to the default front page. if (isset($path) && $path != '') { @@ -1148,13 +1147,15 @@ function drupal_add_link($attributes) { * depends on the 'killswitch' inside it. */ function drupal_add_js($file) { + global $base_url_path; static $sent = array(); + if (!isset($sent['misc/drupal.js'])) { - drupal_set_html_head(''); + drupal_set_html_head(''); $sent['misc/drupal.js'] = true; } if (!isset($sent[$file])) { - drupal_set_html_head(''); + drupal_set_html_head(''); $sent[$file] = true; } } Index: includes/theme.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/theme.inc,v retrieving revision 1.279 diff -F^f -u -r1.279 theme.inc --- includes/theme.inc 20 Jan 2006 09:30:12 -0000 1.279 +++ includes/theme.inc 23 Jan 2006 04:37:59 -0000 @@ -280,7 +280,7 @@ function theme_get_settings($key = NULL) * The value of the requested setting, NULL if the setting does not exist. */ function theme_get_setting($setting_name, $refresh = FALSE) { - global $theme_key; + global $theme_key, $base_url_path; static $settings; if (empty($settings) || $refresh) { @@ -298,11 +298,12 @@ function theme_get_setting($setting_name } if ($settings['toggle_logo']) { + $settings['logo'] = $base_url_path; if ($settings['default_logo']) { - $settings['logo'] = dirname($theme_object->filename) .'/logo.png'; + $settings['logo'] .= dirname($theme_object->filename) .'/logo.png'; } elseif ($settings['logo_path']) { - $settings['logo'] = $settings['logo_path']; + $settings['logo'] .= $settings['logo_path']; } } @@ -330,10 +331,12 @@ function theme_get_setting($setting_name * drupal_set_html_head() to enforce the correct CSS cascading order. */ function theme_add_style($path = '', $media = 'all') { + global $base_url_path; static $styles = array(); + if ($path && !isset($styles["$media:$path"])) { $style = new stdClass(); - $style->path = $path; + $style->path = $base_url_path. $path; $style->media = $media; $styles["$media:$path"] = $style; } @@ -511,9 +514,10 @@ function theme_links($links, $delimiter * A string containing the image tag. */ function theme_image($path, $alt = '', $title = '', $attributes = NULL, $getsize = TRUE) { + global $base_url_path; if (!$getsize || (is_file($path) && (list($width, $height, $type, $image_attributes) = @getimagesize($path)))) { $attributes = drupal_attributes($attributes); - return ''. check_plain($alt) .''; + return ''. check_plain($alt) .''; } } Index: themes/bluemarine/page.tpl.php =================================================================== RCS file: /cvs/drupal/drupal/themes/bluemarine/page.tpl.php,v retrieving revision 1.15 diff -F^f -u -r1.15 page.tpl.php --- themes/bluemarine/page.tpl.php 20 Jan 2006 08:54:06 -0000 1.15 +++ themes/bluemarine/page.tpl.php 23 Jan 2006 04:37:59 -0000 @@ -13,8 +13,11 @@ Index: themes/engines/phptemplate/phptemplate.engine =================================================================== RCS file: /cvs/drupal/drupal/themes/engines/phptemplate/phptemplate.engine,v retrieving revision 1.24 diff -F^f -u -r1.24 phptemplate.engine --- themes/engines/phptemplate/phptemplate.engine 20 Jan 2006 08:54:06 -0000 1.24 +++ themes/engines/phptemplate/phptemplate.engine 23 Jan 2006 04:37:59 -0000 @@ -140,6 +140,7 @@ function phptemplate_features() { * into a pluggable template engine. */ function phptemplate_page($content) { + global $base_url_path; /* Set title and breadcrumb to declared values */ if ($_GET['q'] == variable_get('site_frontpage', 'node')) { @@ -185,6 +186,7 @@ function phptemplate_page($content) { } $variables = array( + 'base_url_path' => $base_url_path, 'breadcrumb' => theme('breadcrumb', drupal_get_breadcrumb()), 'closure' => theme('closure'), 'content' => '' . $content . '', Index: themes/pushbutton/page.tpl.php =================================================================== RCS file: /cvs/drupal/drupal/themes/pushbutton/page.tpl.php,v retrieving revision 1.11 diff -F^f -u -r1.11 page.tpl.php --- themes/pushbutton/page.tpl.php 20 Jan 2006 08:54:07 -0000 1.11 +++ themes/pushbutton/page.tpl.php 23 Jan 2006 04:37:59 -0000 @@ -16,7 +16,7 @@ @@ -24,7 +24,7 @@