X-Git-Url: https://git.p6c8.net/devedit.git/blobdiff_plain/03d83644ce2d958fe3e0466fa272c67f0566f4ab..d45094b7ee0dee87ae03d62f9e9a0a3e2196add8:/devedit.pl?ds=sidebyside diff --git a/devedit.pl b/devedit.pl index 7a27e58..b2261ad 100644 --- a/devedit.pl +++ b/devedit.pl @@ -6,7 +6,7 @@ # Dev-Editor's main program # # Author: Patrick Canterino -# Last modified: 2004-02-06 +# Last modified: 2004-02-23 # use strict; @@ -58,14 +58,14 @@ if($newfile ne '') unless(-d clean_path($config->{'fileroot'}."/".$dir)) { - abort("The directory where you want to create this file or directory doesn't exist."); + abort($config->{'err_dir_not_exist'}); } # ... and check if the path is above the root directory unless(($new_physical,$new_virtual) = check_path($config->{'fileroot'},$dir)) { - abort($config->{'err_creat_ar'}); + abort($config->{'err_create_ar'}); } # Create the physical and the virtual path @@ -86,7 +86,7 @@ if(-e clean_path($config->{'fileroot'}."/".$file)) lockfile => $config->{'lock_file'}, timeout => $config->{'lock_timeout'}); - $uselist->lock or abort("Locking of $config->{'uselist_file'} failed. Try it again in a moment. If the problem persists, ask someone to recreate the lock file ($config->{'lock_file'})."); + $uselist->lock or abort($config->{'err_lock_failed'},{USELIST => $config->{'uselist_file'}, LOCK_FILE => $config->{'lock_file'}}); $uselist->load; # Create a hash with data submitted by user @@ -111,7 +111,7 @@ if(-e clean_path($config->{'fileroot'}."/".$file)) } else { - abort("File/directory does not exist."); + abort($config->{'err_not_exist'}); } #