diff options
| author | hukl <contact@smyck.org> | 2010-07-20 09:17:19 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2010-07-20 09:17:19 +0200 |
| commit | e93140c1083ac9dde55d27d5e0685e9b77527d51 (patch) | |
| tree | 9e8f96e9951176eeab434c388d9806a00882a40a /app/controllers | |
| parent | b783fbfb31be44928fa10a8dfb6c06f114bb213e (diff) | |
adding sponsors footer
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/tags_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/tags_controller.rb b/app/controllers/tags_controller.rb index fe3380d..565cdd4 100644 --- a/app/controllers/tags_controller.rb +++ b/app/controllers/tags_controller.rb | |||
| @@ -14,6 +14,8 @@ class TagsController < ApplicationController | |||
| 14 | @tag = @tag ? @tag.name : params[:id] | 14 | @tag = @tag ? @tag.name : params[:id] |
| 15 | 15 | ||
| 16 | @page = Page.new | 16 | @page = Page.new |
| 17 | |||
| 18 | params[:page] = ( params[:page].is_a?(Fixnum) ? params[:page] : 1 ) | ||
| 17 | 19 | ||
| 18 | @pages = Page.heads.paginate( | 20 | @pages = Page.heads.paginate( |
| 19 | Page.find_options_for_find_tagged_with(@tag).merge( | 21 | Page.find_options_for_find_tagged_with(@tag).merge( |
