From 30dbd610773bbfa97694c4dd21c3e208264fcbde Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Fri, 14 May 2010 18:32:21 +0000 Subject: [PATCH] (NewSvgGetEditForm): Allow editing older revisions. --- modules/svg-edit.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/svg-edit.pl b/modules/svg-edit.pl index 98bf8266..4d12b991 100644 --- a/modules/svg-edit.pl +++ b/modules/svg-edit.pl @@ -67,8 +67,10 @@ sub SvgDimensions { *GetEditForm = *NewSvgGetEditForm; sub NewSvgGetEditForm { + my ($page_name, $upload, $oldText, $revision) = @_; my $html = OldSvgGetEditForm(@_); - my $link = ScriptLink('action=svg;id=' . UrlEncode($OpenPageName), + my $link = ScriptLink('action=svg;id=' . UrlEncode($OpenPageName) + . $revision ? ";revision=$revision" : "", T('Edit image in the browser'), 'svg'); my $text1 = T('Replace this file with text');