On my site, I found the string: $vars = array(); at the beginning of the function.
I have to disable this line for the forum post pages to use the Advanced Forum style.
Should I? Would it affect my site?

Michelle, I apologize for posting my question as a comment and not here. Thank you for the quick reply however it doesn't help, even when I move that line to the top of the function, the post page is using the default D5 theme.

function _phptemplate_variables($hook, $vars) {
  $vars = array();

  if (module_exists('advanced_forum')) {
    $vars = advanced_forum_addvars($hook, $vars);
  }

  if ($hook == 'page') {

    // These are the only important lines
    if (module_exists('page_title')) {
      $vars['head_title'] = page_title_page_get_title();
    }

  }
  return $vars;
}
 

Comments

michelle’s picture

Status: Active » Fixed

Just take it out. I haven't looked at D5 in a long time and was going on the assumption that the theme wouldn't be putting that line there if anything was passed in $vars but, now that I think about it, that's not the case. No clue why your theme would be doing that but that's wrong. Just delete the line.

Michelle

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.