fixes #1392
This commit is contained in:
@@ -16,6 +16,11 @@ class WikiPageVersionsController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def diff
|
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])
|
@thispage = WikiPageVersion.find(params[:thispage])
|
||||||
@otherpage = WikiPageVersion.find(params[:otherpage])
|
@otherpage = WikiPageVersion.find(params[:otherpage])
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user