Closed (fixed)
Project:
phpbb
Version:
5.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
9 May 2007 at 00:04 UTC
Updated:
25 Jul 2007 at 02:48 UTC
I'd fixed this in the 4.7 branch, but it appears the fix has been reverted in the 5.x branch.
Replacing phpbb_block() (line 226) with this function clears up the problem, and allows the default drupal configuration options to appear when you click the "configure" button next to "Recent Forum Topics" on the configure blocks screen. I rewrote the function to make it clearer.
function phpbb_block($op = 'list', $delta = 0, $edit = array() ) {
switch ($op) {
case 'list':
$blocks[0]['info'] = t(variable_get('phpbb_block0_title', 'phpBB Topics'));
return $blocks;
case 'configure':
$form = array();
return $form;
case 'save':
// stub, no special data to save
return;
case 'view': // fall through
default:
$block['subject'] = t(variable_get('phpbb_block0_title', 'phpBB Topics'));
$block['content'] = _phpbb_display_block_0();
return $block;
}
}
Thanks for the converting the module to 5.1!
Comments
Comment #1
arkepp commentedThank you, maartenvg probably branched before I comitted it and I didnt catch it .
I will get it back into Subversion as soon as my semester ends.
Comment #2
arkepp commentedFixed in CVS and files ages ago, forgot to close. Thanks again.