summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ce4ed8b)
directory view (maybe we change this behaviour and display an error message...).
# Execute Dev-Editor's commands
#
# Author: Patrick Canterino <patshaping@gmx.net>
# Execute Dev-Editor's commands
#
# Author: Patrick Canterino <patshaping@gmx.net>
-# Last modified: 2004-10-04
+# Last modified: 2004-10-05
{
my ($data,$config) = @_;
my $virtual = $data->{'virtual'};
{
my ($data,$config) = @_;
my $virtual = $data->{'virtual'};
+ my $uselist = $data->{'uselist'};
+
+ return devedit_reload({command => 'show', file => upper_path($virtual)}) if($uselist->unused($virtual));
if($data->{'cgi'}->param('confirmed'))
{
if($data->{'cgi'}->param('confirmed'))
{
- file_unlock($data->{'uselist'},$virtual);
+ file_unlock($uselist,$virtual);
return devedit_reload({command => 'show', file => upper_path($virtual)});
}
else
return devedit_reload({command => 'show', file => upper_path($virtual)});
}
else