Update helpers.php, function a()

In helpers.php is a function a() used for link generation, i. e. by markdown(). In the opening <a> element was a /, which is ignored by many (all? most?) browsers, but leads to interesting result with jQuery inserting of HTML generated by that function.

I stumbled upon this while developing code for a preview of textareas and not being able to show a link to a task (#1).
This commit is contained in:
Oliver Bertuch 2014-10-24 14:59:30 +02:00
parent 3ee65c9b3b
commit fe63505adf
1 changed files with 1 additions and 1 deletions

View File

@ -570,7 +570,7 @@ function form_numeric($name, $values = array(), array $errors = array(), array $
*/
function a($label, $controller, $action, array $params = array(), $csrf = false, $class = '')
{
return '<a href="'.u($controller, $action, $params, $csrf).'" class="'.$class.'"/>'.$label.'</a>';
return '<a href="'.u($controller, $action, $params, $csrf).'" class="'.$class.'">'.$label.'</a>';
}
/**