diff options
author | ArthurHoaro <arthur@hoa.ro> | 2016-03-10 19:01:30 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2016-03-18 19:13:48 +0100 |
commit | 69c474b96612dc64fc2cb66f1196251cafa08445 (patch) | |
tree | 0522b68c4977b336579765ae37b916dfe526996e /application/Utils.php | |
parent | 8395d0b76145969f4b8940a415af5e46528f04a5 (diff) | |
download | Shaarli-69c474b96612dc64fc2cb66f1196251cafa08445.tar.gz Shaarli-69c474b96612dc64fc2cb66f1196251cafa08445.tar.zst Shaarli-69c474b96612dc64fc2cb66f1196251cafa08445.zip |
Refactor showAtom, and make it use the ATOM template
Minor changes:
* Fix the date which was in a invalid format.
* Avoid empty categories (tags).
* Use the locale to set the language
Diffstat (limited to 'application/Utils.php')
-rw-r--r-- | application/Utils.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application/Utils.php b/application/Utils.php index 3d819716..bcf5bdb5 100644 --- a/application/Utils.php +++ b/application/Utils.php | |||
@@ -226,7 +226,7 @@ function space2nbsp($text) | |||
226 | * | 226 | * |
227 | * @return string formatted description. | 227 | * @return string formatted description. |
228 | */ | 228 | */ |
229 | function format_description($description, $redirector) { | 229 | function format_description($description, $redirector = false) { |
230 | return nl2br(space2nbsp(text2clickable($description, $redirector))); | 230 | return nl2br(space2nbsp(text2clickable($description, $redirector))); |
231 | } | 231 | } |
232 | 232 | ||