Fix #544890 by dereine: use node_load with nid only to allow caching
[project/print.git] / print_pdf / print_pdf.module
index 0d3b3e4..88774c7 100644 (file)
@@ -433,7 +433,7 @@ function print_pdf_link_allowed($args) {
   if (!empty($args['path'])) {
     $nid = preg_replace('!^node/!', '', drupal_get_normal_path($args['path']));
     if (is_numeric($nid)) {
-      $args['node'] = node_load(array('nid' => $nid));
+      $args['node'] = node_load($nid);
     }
   }
   if (!empty($args['node'])) {