Commit c730d8c1 authored by webchick's avatar webchick

#549230 by sun: Changed Use drupal_static() in _node_revision_access().

parent aff14a73
......@@ -1595,7 +1595,7 @@ function theme_node_search_admin($form) {
}
function _node_revision_access($node, $op = 'view') {
static $access = array();
$access = &drupal_static(__FUNCTION__, array());
if (!isset($access[$node->vid])) {
$node_current_revision = node_load($node->nid);
$is_current_revision = $node_current_revision->vid == $node->vid;
......
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