This commit is contained in:
r888888888
2013-04-21 14:23:34 -07:00
parent 3f665244bc
commit c564199f0e

View File

@@ -16,6 +16,11 @@ class WikiPageVersionsController < ApplicationController
end
def diff
if params[:thispage].blank? || params[:otherpage].blank?
redirect_to :back, :notice => "You must select two versions to diff"
return
end
@thispage = WikiPageVersion.find(params[:thispage])
@otherpage = WikiPageVersion.find(params[:otherpage])
end