diff options
author | Oliver Bertuch <oliver@majinai.net> | 2014-10-24 14:59:30 +0200 |
---|---|---|
committer | Oliver Bertuch <oliver@majinai.net> | 2014-10-24 14:59:30 +0200 |
commit | fe63505adf2ab9e53fc8d0df099e57b90bed79c1 (patch) | |
tree | 4ef964c5ad89cb3acfccee780d876f27bb8d7ca0 /app | |
parent | 3ee65c9b3bc5aba248cfd0813eed7198f5c9b8b3 (diff) |
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).
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers.php b/app/helpers.php index cd6d630e..f9415582 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -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>'; } /** |