Skip to content
Snippets Groups Projects
Commit 40b13e55 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- node_load(array('nid' => arg(1))) -> node_load(arg(1))

parent 160a1e0e
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -172,7 +172,7 @@ function phptemplate_page($content) { ...@@ -172,7 +172,7 @@ function phptemplate_page($content) {
'closure' => theme('closure') 'closure' => theme('closure')
); );
if ((arg(0) == 'node') && is_int(arg(1))) { if ((arg(0) == 'node') && is_int(arg(1))) {
$variables['node'] = node_load(array('nid' => arg(1))); $variables['node'] = node_load(arg(1));
} }
return _phptemplate_callback('page', $variables); return _phptemplate_callback('page', $variables);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment