From: pcanterino <> Date: Mon, 1 Aug 2005 09:18:25 +0000 (+0000) Subject: - Fixed the prototype problem of dir_copy() in File::Access X-Git-Tag: version_3_0~8 X-Git-Url: https://git.p6c8.net/devedit.git/commitdiff_plain/85de18899b48fe39a79a265bff4b1fd0478c5842?ds=sidebyside;hp=5d97440acfd02dd482d9b87d8a86521b013aea46 - Fixed the prototype problem of dir_copy() in File::Access - Added some notes about the problems of the feature of copying a whole directory - Added some notes about my incompetence - In the edit dialogue, there is a new checkbox allowing to continue editing the file after saving it --- diff --git a/modules/Command.pm b/modules/Command.pm index 5105c3b..d779a6c 100644 --- a/modules/Command.pm +++ b/modules/Command.pm @@ -6,7 +6,7 @@ package Command; # Execute Dev-Editor's commands # # Author: Patrick Canterino -# Last modified: 2005-07-06 +# Last modified: 2005-08-01 # use strict; @@ -409,7 +409,9 @@ sub exec_endedit($$) print FILE $content; } - $output = devedit_reload({command => 'show', file => $dir}); + $output = ($cgi->param('continue')) + ? devedit_reload({command => 'beginedit', file => $virtual}) + : devedit_reload({command => 'show', file => $dir}); } close(FILE); diff --git a/modules/File/Access.pm b/modules/File/Access.pm index e0f4e55..248eb35 100644 --- a/modules/File/Access.pm +++ b/modules/File/Access.pm @@ -7,7 +7,7 @@ package File::Access; # using only one command # # Author: Patrick Canterino -# Last modified: 2005-07-05 +# Last modified: 2005-08-01 # use strict; @@ -41,6 +41,10 @@ use base qw(Exporter); $has_flock = eval { local $SIG{'__DIE__'}; flock(STDOUT,0); 1 }; +# Predeclaration of dir_copy() + +sub dir_copy($$); + # dir_copy() # # Copy a directory diff --git a/templates/copydir.htm b/templates/copydir.htm index b0d495d..f98f63b 100644 --- a/templates/copydir.htm +++ b/templates/copydir.htm @@ -26,8 +26,12 @@

-

Note:
-The target you want this directory to copy to must not exist!

+

Important notes:

+ +
diff --git a/templates/editfile.htm b/templates/editfile.htm index a14b7fb..263b91e 100644 --- a/templates/editfile.htm +++ b/templates/editfile.htm @@ -23,7 +23,8 @@

-

+


+