#46 windows plugin broken in 1.3.1

closed-wont-fix
nobody
5
2002-12-23
2002-10-08
Nick Sayer
No

Look at the big switch statement on $index_order_part,
case 4.

This case of the switch statement builds a big $td_str
with the current table datum in it. In the midst of
doing this, it calls the do_hook() for subject_link.
This won't work, because the plugin API says that
plugins should simply echo their content out to have it
added to the link. Since this switch case is buffering
the tag in a string, the echoed output will end up
going in the wrong place.

If one is using recent versions of php, output
buffering can be used to work around the issue, like this:

ob_start();
do_hook("subject_link");
$td_str .= ob_get_contents();
ob_end_clean();

Short of this, nothing apart from changing the plugin
API will help, I fear.

Discussion

    • status: open --> closed-wont-fix