Fix #631760: add query string to user-specified print.css to force browser reload...
authorJoao Ventura
Mon, 11 Jan 2010 16:28:50 +0000 (16:28 +0000)
committerJoao Ventura
Mon, 11 Jan 2010 16:28:50 +0000 (16:28 +0000)
print.pages.inc

index b1c3d46..4ddfd02 100644 (file)
@@ -218,7 +218,8 @@ function _print_var_generator($node, $message = NULL, $cid = NULL) {
   else {
     $print['css'] = drupal_get_css($drupal_css);
     if (!empty($print_css)) {
-      $print['css'] .= "<link type='text/css' rel='stylesheet' media='all' href='$user_css' />\n";
+      $query_string = '?'. substr(variable_get('css_js_query_string', '0'), 0, 1);
+      $print['css'] .= "<link type='text/css' rel='stylesheet' media='all' href='${user_css}${query_string}' />\n";
     }
   }