commit:     8aaf89df9fbe64113864059d45c0c36a29d3b77b
Author:     Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sun Feb 22 00:30:40 2015 +0000
Commit:     Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sun Feb 22 00:30:40 2015 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=8aaf89df

less redirection magic

---
 ag-web.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ag-web.rb b/ag-web.rb
index 182d269..63d194f 100644
--- a/ag-web.rb
+++ b/ag-web.rb
@@ -107,7 +107,7 @@ get '/:list/threads/:year-:month/:page?' do
     max_pages = (result['hits']['total'].to_f / PER_PAGE).ceil
 
     if result['hits']['total'] == 0
-      redirect to("/%s/messages/%s-%s?no_threads=1" % [params[:list], 
params[:year], params[:month]])
+      redirect "/%s/messages/%s-%s?no_threads=1" % [params[:list], 
params[:year], params[:month]]
       return
     end
 

Reply via email to