Remove debugging code from User.pm

Add clause to remove any dot file from getToolbarOptions in Icon.pm
This commit is contained in:
Colin Kuskie 2005-12-10 21:29:06 +00:00
parent fadb77822e
commit 45de852b61
2 changed files with 1 additions and 3 deletions

View file

@ -242,7 +242,7 @@ sub getToolbarOptions {
opendir (DIR,$dir) or WebGUI::ErrorHandler::warn("Can't open toolbar directory!");
my @files = readdir(DIR);
foreach my $file (@files) {
if ($file ne ".." && $file ne ".") {
if (substr($file,0,1) ne ".") {
$options{$file} = $file;
}
}