projects
/
project/print.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix #544890 by dereine: use node_load with nid only to allow caching
[project/print.git]
/
print_pdf
/
print_pdf.module
diff --git
a/print_pdf/print_pdf.module
b/print_pdf/print_pdf.module
index
0d3b3e4
..
88774c7
100644
(file)
--- a/
print_pdf/print_pdf.module
+++ b/
print_pdf/print_pdf.module
@@
-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'])) {