Drupal 6 syntax for pearwiki_filter_help() used in the 5.x-1.x-dev package
fuerst - February 27, 2008 - 10:03
| Project: | PEAR Wiki Filter |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | needs review |
Description
pearwiki_filter_help() for Drupal 5 needs 1 parameter ($section). Alas in the file pearwiki_filter.module v1.11 from the 5.x-1.x-dev package the Drupal 6 syntax with 2 parameters is used. This will generate a PHP warning: warning: Missing argument 2 for pearwiki_filter_help().
Fix would be to either call it like this: pearwiki_filter_help($path, $arg = '') or by just using the Drupal 5 syntax in the 5.x-1.x-dev package. I don't know exactly what is more Drupal like.
