diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-02-02 15:22:07 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-02-02 15:22:07 +0000 |
commit | 1eb17b08f94148074823174ffe105e0497936999 (patch) | |
tree | d1ba627c2ad76f7dbc649247838980fd6f5941d3 /app | |
parent | 318c8717b8a0ae47839787525394a82b0a2c5ef1 (diff) | |
download | redmine-1eb17b08f94148074823174ffe105e0497936999.tar.gz redmine-1eb17b08f94148074823174ffe105e0497936999.zip |
added parentheses to get rid of warning
git-svn-id: http://redmine.rubyforge.org/svn/trunk@218 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/views/documents/_document.rhtml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/documents/_document.rhtml b/app/views/documents/_document.rhtml index 55864ee82..81e039be2 100644 --- a/app/views/documents/_document.rhtml +++ b/app/views/documents/_document.rhtml @@ -1,3 +1,3 @@ <p><%= link_to h(document.title), :controller => 'documents', :action => 'show', :id => document %><br />
-<% unless document.description.empty? %><%=h truncate document.description, 250 %><br /><% end %>
+<% unless document.description.empty? %><%=h(truncate(document.description, 250)) %><br /><% end %>
<em><%= format_time(document.created_on) %></em></p>
\ No newline at end of file |