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

4.7.x
Dries Buytaert 2005-09-09 05:32:31 +00:00
parent 6ef519f7fc
commit d995621f2e
1 changed files with 2 additions and 1 deletions

View File

@ -210,7 +210,8 @@ function phptemplate_page($content) {
'tabs' => theme('menu_local_tasks'),
'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));
}