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

- Patch #27781 by Robert Jacques: fixed node not being loaded.

parent 6ef519f7
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
...@@ -210,7 +210,8 @@ function phptemplate_page($content) { ...@@ -210,7 +210,8 @@ function phptemplate_page($content) {
'tabs' => theme('menu_local_tasks'), 'tabs' => theme('menu_local_tasks'),
'title' => drupal_get_title() 'title' => drupal_get_title()
); );
if ((arg(0) == 'node') && is_int(arg(1))) {
if ((arg(0) == 'node') && is_numeric(arg(1))) {
$variables['node'] = node_load(arg(1)); $variables['node'] = node_load(arg(1));
} }
......
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