Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 76f513fdc..595d963a8 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -38,6 +38,9 @@ class ApplicationController < ActionController::Base
@request_count = Request.where(:recipient_id => current_user.person.id).count if current_user
end
+ def ensure_page
+ params[:page] = params[:page] ? params[:page].to_i : 1
+ end
def set_invites
if user_signed_in?
@invites = current_user.invites