Commit 06442272 authored by jcnventura's avatar jcnventura

Fix #480916: only use cached node type when processing comments

parent 361ee8f2
......@@ -713,16 +713,11 @@ function print_link_allowed($args) {
}
}
if (!empty($args['node'])) {
static $node_type = FALSE;
static $node_type = '';
$node = $args['node'];
if ($node_type === FALSE) {
if (isset($node->type)) {
$node_type = $node->type;
}
else {
$node_type = '';
}
if (isset($node->type)) {
$node_type = $node->type;
}
// Node
$print_html_node_link_visibility = variable_get('print_html_node_link_visibility', PRINT_HTML_NODE_LINK_VISIBILITY_DEFAULT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment