vars = array

PostalMethods - July 9, 2009 - 08:20
Project:Advanced Forum
Version:5.x-1.1
Component:Documentation
Category:support request
Priority:minor
Assigned:Unassigned
Status:closed
Description

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;
}

#1

Michelle - July 9, 2009 - 13:12
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

#2

System Message - July 23, 2009 - 13:20
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.