diff --git a/lam/help/help.inc b/lam/help/help.inc index a3bcc87b..5c8734d7 100644 --- a/lam/help/help.inc +++ b/lam/help/help.inc @@ -184,8 +184,8 @@ $helpArray = array ( /* This is a sample help entry. Just copy this line an modify the values between the [] brackets. - "[HelpNumber]" => array ("ext" => "FALSE", "Headline" => _("[Headline]"), "Text" => _("[Text]"), "SeeAlso" => "[SeeAlso link]"), - "999" => array ("ext" => "FALSE", "Headline" => _("This is a sample entry"), "Text" => _("Sample text"), "SeeAlso" => "http://lam.sf.net"), + "[HelpNumber]" => array ("ext" => "FALSE", "Headline" => _("[Headline]"), "Text" => _("[Text]"), "SeeAlso" => array('link' => "[SeeAlso link]", 'text' => '[link text]')), + "999" => array ("ext" => "FALSE", "Headline" => _("This is a sample entry"), "Text" => _("Sample text"), "SeeAlso" => array('link' => "http://lam.sf.net", 'text' => 'Project page')), If help text is located in an extra file then the file must be stored in help directory. diff --git a/lam/templates/help.php b/lam/templates/help.php index 02645fb0..09c33a89 100644 --- a/lam/templates/help.php +++ b/lam/templates/help.php @@ -103,12 +103,8 @@ function displayHelp($helpEntry,$helpVariables) { $format = "

" . $helpEntry['Text'] . "

\n"; array_unshift($helpVariables,$format); call_user_func_array("printf",$helpVariables); - if(isset($helpArray['SeeAlso']) && is_array($helpArray['SeeAlso'])) { - while($current = current($helpEntry["SeeAlso"])) - { - echo '

' . (( isset($current['link'])) ? '' : '') . _('See also') . ': ' . $current['text'] . (( isset($current['link'])) ? '' : '') . '

\n'; - next($helpEntry["SeeAlso"]); - } + if(isset($helpEntry['SeeAlso']) && is_array($helpEntry['SeeAlso'])) { + echo '

' . _('See also') . ': ' . $helpEntry['SeeAlso']['text'] . '

'; } echoHTMLFoot(); }