Posted by seanburlington on June 7, 2008 at 2:23pm
Jump to:
| Project: | API |
| Version: | master |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
in file
// $Id: parser.inc,v 1.24.2.13 2007/11/16 19:56:52 drumm Exp $
the api_parse_html_file() function looks for a page title like this
if (preg_match('!(.*)!is', $source, $title_match)) {
$docblocks[0]['title'] = $title_match[1];
}
but the regex matches the empty string.
An empty title means you can't search for the file, and as search is the main navigation tool for api pages this is quite a big problem.
This regex will only match non-empty titles (leaving the title as the default - which is file_name)
if (preg_match('!(.+)!is', $source, $title_match)) {
Comments
#1
I just fixed this. http://drupal.org/node/365101
#2
Automatically closed -- issue fixed for 2 weeks with no activity.