cvsuser 02/03/27 10:30:33
Modified: P5EEx/Blue/P5EEx/Blue/Widget/HTML TreeView.pm
Log:
fix to not refer to /pub/Widget (old code base)
Revision Changes Path
1.3 +8 -7 p5ee/P5EEx/Blue/P5EEx/Blue/Widget/HTML/TreeView.pm
Index: TreeView.pm
===================================================================
RCS file: /cvs/public/p5ee/P5EEx/Blue/P5EEx/Blue/Widget/HTML/TreeView.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -r1.2 -r1.3
--- TreeView.pm 8 Feb 2002 20:42:29 -0000 1.2
+++ TreeView.pm 27 Mar 2002 18:30:33 -0000 1.3
@@ -1,10 +1,10 @@
######################################################################
-## $Id: TreeView.pm,v 1.2 2002/02/08 20:42:29 spadkins Exp $
+## $Id: TreeView.pm,v 1.3 2002/03/27 18:30:33 spadkins Exp $
######################################################################
package P5EEx::Blue::Widget::HTML::TreeView;
-$VERSION = do { my @r=(q$Revision: 1.2 $=~/\d+/g); sprintf "%d."."%02d"x$#r,@r};
+$VERSION = do { my @r=(q$Revision: 1.3 $=~/\d+/g); sprintf "%d."."%02d"x$#r,@r};
use P5EEx::Blue::P5EE;
use P5EEx::Blue::Widget::HTML::HierView;
@@ -87,7 +87,7 @@
}
my ($row, $col, $row2, @colislink);
- my ($imgstart, $imgend, $imgbuttonstart, $imgbuttonend);
+ my ($html_url_dir, $imgstart, $imgend, $imgbuttonstart, $imgbuttonend);
my ($html, $label, $colspan, $isparent, $open);
for ($row = $#shownnodenumber; $row >= 0; $row--) {
@@ -100,10 +100,11 @@
}
}
- $imgstart = '<img src="/pub/Widget/images/TreeView/';
- $imgend = '" width="19" height="16" border="0"/>';
- $imgbuttonstart = '<input type="image" src=/pub/Widget/images/TreeView/';
- $imgbuttonend = ' width="19" height="16" border="0"/>';
+ $html_url_dir = $self->{context}->iget("htmlUrlDir");
+ $imgstart = "<img src=\"$html_url_dir/images/TreeView/";
+ $imgend = "\" width=\"19\" height=\"16\" border=\"0\"/>";
+ $imgbuttonstart = "<input type=\"image\" src=$html_url_dir/images/TreeView/";
+ $imgbuttonend = " width=\"19\" height=\"16\" border=\"0\"/>";
$html = "";
$html .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";