Skip to content

Commit

Permalink
Fixing bug, the text for functions was not being extracted on the mai…
Browse files Browse the repository at this point in the history
…n server
  • Loading branch information
lorenzo committed Jan 18, 2012
1 parent 79dd611 commit ccee87e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/toc_extractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function transformIndex(&$menu) {
$xml = new SimpleXMLElement($piece[0]);
foreach ($xml->xpath('//a') as $node) {
$tmp = $node->attributes();
$text = (string) $node->strong[0];
$text = $text = (string) $node;
if ($text && $text[0] === '(') {
$url = (string)$tmp["href"][0];
$text = str_replace('$', ' ', end(explode('::', $url))) . ' ' . $text;
Expand Down

0 comments on commit ccee87e

Please sign in to comment.