Skip to content
This repository was archived by the owner on Jun 24, 2019. It is now read-only.

Commit a3abcd0

Browse files
author
Christian Kruse
committedApr 3, 2018
fix: append query string to the end
Fixes #790
1 parent 96ca83f commit a3abcd0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎lib/tools.rb

+6-6
Original file line numberDiff line numberDiff line change
@@ -276,16 +276,16 @@ def badge_path(badge, args = {})
276276
badges_path + '/' + badge + query_string(args)
277277
end
278278

279-
def cf_archive_path(forum)
280-
forum_path(forum) + '/archive'
279+
def cf_archive_path(forum, args = {})
280+
_forum_path(forum) + '/archive' + query_string(args)
281281
end
282282

283-
def cf_archive_year_path(forum, year)
284-
forum_path(forum) + '/' + year.to_s
283+
def cf_archive_year_path(forum, year, args = {})
284+
_forum_path(forum) + '/' + year.to_s + query_string(args)
285285
end
286286

287-
def cf_archive_month_path(forum, month)
288-
forum_path(forum) + '/' + month.strftime('%Y/%b').downcase
287+
def cf_archive_month_path(forum, month, args = {})
288+
_forum_path(forum) + '/' + month.strftime('%Y/%b').downcase + query_string(args)
289289
end
290290

291291
#

0 commit comments

Comments
 (0)
This repository has been archived.