Closed (fixed)
Project:
Advanced Forum
Version:
5.x-1.1
Component:
Documentation
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Jul 2009 at 08:20 UTC
Updated:
23 Jul 2009 at 13:20 UTC
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
Comment #1
michelleJust 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