diff options
author | zotlabs <mike@macgirvin.com> | 2016-08-28 12:32:32 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-28 12:32:32 +1000 |
commit | 391d7fed523b47e9cceb2f27be7c91bdf47b535c (patch) | |
tree | 8fc0a973e1fbcdc945533e94cb0c98176da0e97e /Zotlabs/Module/Help.php | |
parent | 381b1a066d83198c6f13f8aa920a6e4537f9404f (diff) | |
parent | 07e28a9757d23b4bffa44f54937fe914a6a106db (diff) | |
download | volse-hubzilla-391d7fed523b47e9cceb2f27be7c91bdf47b535c.tar.gz volse-hubzilla-391d7fed523b47e9cceb2f27be7c91bdf47b535c.tar.bz2 volse-hubzilla-391d7fed523b47e9cceb2f27be7c91bdf47b535c.zip |
Merge pull request #501 from anaqreon/doc-search
Display text around the searched query in documentation search
Diffstat (limited to 'Zotlabs/Module/Help.php')
-rw-r--r-- | Zotlabs/Module/Help.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Module/Help.php b/Zotlabs/Module/Help.php index 479925b66..241354d07 100644 --- a/Zotlabs/Module/Help.php +++ b/Zotlabs/Module/Help.php @@ -36,8 +36,9 @@ class Help extends \Zotlabs\Web\Controller { $fname = substr($fname,0,strrpos($fname,'.')); $path = trim(substr($dirname,4),'/'); - $o .= '<li><a href="help/' . (($path) ? $path . '/' : '') . $fname . '" >' . ucwords(str_replace('_',' ',notags($fname))) . '</a><br />' . - str_replace('$Projectname',\Zotlabs\Lib\System::get_platform_name(),substr($rr['text'],0,200)) . '...<br /><br /></li>'; + $o .= '<li><a href="help/' . (($path) ? $path . '/' : '') . $fname . '" >' . ucwords(str_replace('_',' ',notags($fname))) . '</a><br />' + . '<b><i>' . 'help/' . (($path) ? $path . '/' : '') . $fname . '</i></b><br />' . + '...' . str_replace('$Projectname',\Zotlabs\Lib\System::get_platform_name(),$rr['text']) . '...<br /><br /></li>'; } $o .= '</ul>'; |