From 07e28a9757d23b4bffa44f54937fe914a6a106db Mon Sep 17 00:00:00 2001 From: Andrew Manning Date: Sat, 27 Aug 2016 21:26:16 -0400 Subject: Display text around the searched query in documentation search --- Zotlabs/Module/Help.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Zotlabs/Module/Help.php') 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 .= '
  • ' . ucwords(str_replace('_',' ',notags($fname))) . '
    ' . - str_replace('$Projectname',\Zotlabs\Lib\System::get_platform_name(),substr($rr['text'],0,200)) . '...

  • '; + $o .= '
  • ' . ucwords(str_replace('_',' ',notags($fname))) . '
    ' + . '' . 'help/' . (($path) ? $path . '/' : '') . $fname . '
    ' . + '...' . str_replace('$Projectname',\Zotlabs\Lib\System::get_platform_name(),$rr['text']) . '...

  • '; } $o .= ''; -- cgit v1.2.3