Support » Plugin: MailMan Widget » Widget not listing all lists

  • The plugin didn’t list all my lists.
    I checked the code and found that the mailman.class.php::lists() method used the following regular expression:

    $match='#<tr.*?>\s+<td><a href="(.+?)"><strong>(.+?)</strong></a></td>\s+<td><em>(.+?)</em></td>\s+</tr>#i';

    However, in some cases, the list comment is not embedded in an <em> tag, leading the list to be hidden silently.

    I fixed that by changing the regular expression to:

    $match='#<tr.*?>\s+<td><a href="(.+?)"><strong>(.+?)</strong></a></td>\s+<td>[<em>]?(.+?)[</em>]?</td>\s+</tr>#i';


  • The topic ‘Widget not listing all lists’ is closed to new replies.