diff --git a/lam/templates/help.php b/lam/templates/help.php index b6e2ae13..f908b449 100644 --- a/lam/templates/help.php +++ b/lam/templates/help.php @@ -4,7 +4,7 @@ $Id$ This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) Copyright (C) 2003 - 2006 Michael Duergner - 2008 - 2013 Roland Gruber + 2008 - 2015 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -79,17 +79,15 @@ function echoHTMLFoot() { * Print help site for a specific help number. * * @param array The help entry that is to be displayed. - * @param array The help variables that are used to replace the spacer in the help text. */ -function displayHelp($helpEntry,$helpVariables) { +function displayHelp($helpEntry) { echoHTMLHead(); echo "

" . $helpEntry['Headline'] . "

\n"; $format = "

" . $helpEntry['Text'] . "

\n"; if (isset($helpEntry['attr'])) { $format .= '

' . _('Technical name') . ': ' . $helpEntry['attr'] . ''; } - array_unshift($helpVariables,$format); - call_user_func_array("printf",$helpVariables); + echo $format; if(isset($helpEntry['SeeAlso']) && is_array($helpEntry['SeeAlso'])) { echo '

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

'; } @@ -144,19 +142,6 @@ else { } } -$i = 1; -$moreVariables = true; -$helpVariables = array(); -while($moreVariables) { - if (isset($_GET['var' . $i])) { - array_push($helpVariables, htmlspecialchars($_GET['var' . $i])); - $i++; - } - else { - $moreVariables = false; - } -} - -displayHelp($helpEntry,$helpVariables); +displayHelp($helpEntry); ?> \ No newline at end of file