# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: /Users/dave/Sites/democrats/trunk/sites/all/modules/contrib/parallel
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: parallel.module
--- parallel.module Base (BASE)
+++ parallel.module Locally Modified (Based On LOCAL)
@@ -101,13 +101,21 @@
  *   Array containing various page elements.
  */
 function parallel_preprocess_page(&$variables) {
+  global $base_url;
   if (variable_get('parallel_enabled', TRUE)) {
-    if (variable_get('parallel_domain_css', '') != '') {
-      $variables['styles'] = str_replace(' href="/', ' href="' . variable_get('parallel_domain_css', '') . '/', $variables['styles']);
+    if ($css_domain = variable_get('parallel_domain_css', '')) {
+      // Relative.
+      $variables['styles'] = str_replace(' href="/', ' href="' . $css_domain . '/', $variables['styles']);
+      // Absolute.
+      $variables['styles'] = str_replace(' href="'. $base_url .'/', ' href="' . $css_domain . '/', $variables['styles']);
     }
-    if (variable_get('parallel_domain_js', '') != '') {
-      $variables['scripts'] = str_replace(' src="/', ' src="' . variable_get('parallel_domain_js', '') . '/', $variables['scripts']);
-      $variables['closure'] = str_replace(' src="/', ' src="' . variable_get('parallel_domain_js', '') . '/', $variables['closure']);
\ No newline at end of file
+    if ($js_domain = variable_get('parallel_domain_js', '')) {
+      // Relative.
+      $variables['scripts'] = str_replace(' src="/', ' src="' . $js_domain . '/', $variables['scripts']);
+      $variables['closure'] = str_replace(' src="/', ' src="' . $js_domain . '/', $variables['closure']);
+      // Absolute.
+      $variables['scripts'] = str_replace(' src="'. $base_url .'/', ' src="' . $js_domain . '/', $variables['scripts']);
+      $variables['closure'] = str_replace(' src="'. $base_url .'/', ' src="' . $js_domain . '/', $variables['closure']);
\ No newline at end of file
     }
     if (variable_get('parallel_domain_img', '') != '') {
       $skip_keys = array('styles', 'scripts', 'closure', 'zebra', 'id', 'directory', 'layout', 'head_title', 'base_path', 'front_page', 'head', 'body_clases');
