diff options
| author | hukl <contact@smyck.org> | 2009-09-10 16:42:59 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-09-10 16:42:59 +0200 |
| commit | 4c47711919278fc8f0c3a062dd96615d62d131a3 (patch) | |
| tree | d0f4c3b7841c806997675c0438cb19947c3843d8 /app/helpers | |
| parent | 47944aeae214f2cf9eaa7850fb76ea46287bf028 (diff) | |
and one more tiny modification on the atom feed
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/link_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/link_helper.rb b/app/helpers/link_helper.rb index 2d312302..e5fc6326 100644 --- a/app/helpers/link_helper.rb +++ b/app/helpers/link_helper.rb | |||
| @@ -9,6 +9,10 @@ module LinkHelper | |||
| 9 | ) | 9 | ) |
| 10 | end | 10 | end |
| 11 | 11 | ||
| 12 | def content_url_helper path_array | ||
| 13 | request.protocol + request.host_with_port + content_path_helper(path_array) | ||
| 14 | end | ||
| 15 | |||
| 12 | def link_to_path title, path, html_options = {} | 16 | def link_to_path title, path, html_options = {} |
| 13 | if params[:page_path] | 17 | if params[:page_path] |
| 14 | active = (params[:page_path].join("/") == path.sub(/^\//, "")) | 18 | active = (params[:page_path].join("/") == path.sub(/^\//, "")) |
