removed some debug comments and fixed a cut and paste comment error
This commit is contained in:
parent
19bf1f4e8a
commit
63376067ff
1 changed files with 2 additions and 29 deletions
|
|
@ -256,9 +256,9 @@ sub _translateUrlToPath {
|
|||
$dataRef->{'error'} = "Cannot generate path for url $url. Ambiguious.";
|
||||
}
|
||||
}
|
||||
else { # No slash in the url and no dots
|
||||
else { # Dots in the url but no slash
|
||||
$dataRef->{'path'} = undef;
|
||||
$dataRef->{'filename'} = $url; # webgui url foo.html becomes filename foo.html
|
||||
$dataRef->{'filename'} = $url; # webgui url foo.html becomes no path, filename foo.html
|
||||
}
|
||||
|
||||
return $dataRef;
|
||||
|
|
@ -406,31 +406,4 @@ sub www_exportGenerate {
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
# if ($url =~ /\./) { # If the URL has a dot in it somewhere (i.e., /foo/index.html)
|
||||
# if ($url =~ /^(.*)\/(.*)$/) {
|
||||
# $path = $1; # part before the slash is "path"
|
||||
# $filename = $2; # part after the slash is "filename" (becomes folder foo, file index.html)
|
||||
# if ($path =~ /\./) { # unless of course the dot is in the path (i.e., /index.html/foo)
|
||||
# $filename = $index; # then we want to use index as the filename
|
||||
# $path = $2; # and filename as the path (becomes folder foo, file index.html or whatever they set index to)
|
||||
# }
|
||||
# if ($filename eq "") { # If filename is blank, use path as filename and set path to null
|
||||
# $filename = $path;
|
||||
# $path = undef;
|
||||
# }
|
||||
# } else { # If filename is *not* blank, discard the path
|
||||
# $path = undef;
|
||||
# $filename = $url; # and set the filename equal to the url
|
||||
# }
|
||||
# } else { # No dot in the url, use the url as the path
|
||||
# $path = $url;
|
||||
# $filename = $index; # and make the filename whatever the user specifies for the index filename.
|
||||
# }
|
||||
|
||||
|
||||
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue