Index: file.inc
===================================================================
--- file.inc (revision 5225)
+++ file.inc (working copy)
@@ -33,7 +33,7 @@
}
switch (variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC)) {
case FILE_DOWNLOADS_PUBLIC:
- return $GLOBALS['base_url'] .'/'. file_directory_path() .'/'. str_replace('\\', '/', $path);
+ return static2 .'/'. file_directory_path() .'/'. str_replace('\\', '/', $path);
case FILE_DOWNLOADS_PRIVATE:
return url('system/files/'. $path, NULL, NULL, TRUE);
}
Index: common.inc
===================================================================
--- common.inc (revision 5225)
+++ common.inc (working copy)
@@ -1478,15 +1478,15 @@
// If a CSS file is not to be preprocessed and it's a module CSS file, it needs to *always* appear at the *top*,
// regardless of whether preprocessing is on or off.
if (!$preprocess && $type == 'module') {
- $no_module_preprocess .= '' ."\n";
+ $no_module_preprocess .= '' ."\n";
}
// If a CSS file is not to be preprocessed and it's a theme CSS file, it needs to *always* appear at the *bottom*,
// regardless of whether preprocessing is on or off.
else if (!$preprocess && $type == 'theme') {
- $no_theme_preprocess .= '' ."\n";
+ $no_theme_preprocess .= '' ."\n";
}
else {
- $output .= '' ."\n";
+ $output .= '' ."\n";
}
}
}
@@ -1495,7 +1495,7 @@
if ($is_writable && $preprocess_css) {
$filename = md5(serialize($types)) . variable_get('css_version', 1) .'.css';
$preprocess_file = drupal_build_css_cache($types, $filename);
- $output .= ''. "\n";
+ $output .= ''. "\n";
}
}
@@ -1532,7 +1532,7 @@
// Wraps all @import arguments in url().
$contents = preg_replace('/@import\s+(?!url)[\'"]?(\S*)\b[\'"]?/i', '@import url("\1")', $contents);
// Fix all paths within this CSS file, ignoring absolute paths.
- $data .= preg_replace('/url\(([\'"]?)(?![a-z]+:)/i', 'url(\1'. $path . '\2', $contents);
+ $data .= preg_replace('/url\(([\'"]?)(?![a-z]+:)/i', 'url('. static1 .'\1'. $path . '\2', $contents);
}
}
}
@@ -1708,7 +1708,7 @@
// Additionally, go through any remaining scripts if JS preprocessing is on and output the non-cached ones.
foreach ($data as $path => $info) {
if (!$info['preprocess'] || !$is_writable || !$preprocess_js) {
- $no_preprocess[$type] .= '\n";
+ $no_preprocess[$type] .= '\n";
}
else {
$files[$path] = $info;
@@ -1722,7 +1722,7 @@
// append JS version so it creates different JS file names when we change it
$filename = md5(serialize($files)) . variable_get('js_version', 1) .'.js';
$preprocess_file = drupal_build_js_cache($files, $filename);
- $preprocessed .= ''. "\n";
+ $preprocessed .= ''. "\n";
}
// Keep the order of JS files consistent as some are preprocessed and others are not.
Index: theme.inc
===================================================================
--- theme.inc (revision 5225)
+++ theme.inc (working copy)
@@ -323,24 +323,24 @@
if ($settings['toggle_logo']) {
if ($settings['default_logo']) {
- $settings['logo'] = base_path() . dirname($theme_object->filename) .'/logo.png';
+ $settings['logo'] = static2 . base_path() . dirname($theme_object->filename) .'/logo.png';
}
elseif ($settings['logo_path']) {
- $settings['logo'] = base_path() . $settings['logo_path'];
+ $settings['logo'] = static2 . base_path() . $settings['logo_path'];
}
}
if ($settings['toggle_favicon']) {
if ($settings['default_favicon']) {
if (file_exists($favicon = dirname($theme_object->filename) .'/favicon.ico')) {
- $settings['favicon'] = base_path() . $favicon;
+ $settings['favicon'] = static2 . base_path() . $favicon;
}
else {
- $settings['favicon'] = base_path() . 'misc/favicon.ico';
+ $settings['favicon'] = static2 . base_path() . 'misc/favicon.ico';
}
}
elseif ($settings['favicon_path']) {
- $settings['favicon'] = base_path() . $settings['favicon_path'];
+ $settings['favicon'] = static2 . base_path() . $settings['favicon_path'];
}
else {
$settings['toggle_favicon'] = FALSE;
@@ -615,7 +615,7 @@
if (!$getsize || (is_file($path) && (list($width, $height, $type, $image_attributes) = @getimagesize($path)))) {
$attributes = drupal_attributes($attributes);
$url = (url($path) == $path) ? $path : (base_path() . $path);
- return '
';
+ return '
';
}
}