[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gforge-devel] [ gforge-Bugs-229 ] bug when calling html_dbimage
From: |
noreply |
Subject: |
[Gforge-devel] [ gforge-Bugs-229 ] bug when calling html_dbimage |
Date: |
Fri, 14 Feb 2003 08:27:06 -0600 |
Bugs item #229, was opened at 14/02/2003 15:27
You can respond by visiting:
http://gforge.org/tracker/?func=detail&atid=105&aid=229&group_id=1
Category: SiteWide
Group: None
Status: Open
Priority: 5
Submitted By: Philippe Kiener (phil)
Assigned to: Nobody (None)
Summary: bug when calling html_dbimage
Initial Comment:
When calling html_dbimage, it doesn't show the image because the link is not
correct in the html_image function.
function html_image display only source that are on the /themes directory.
Here is the patch that change where html_image reads the image.
Index: www/include/html.php
===================================================================
RCS file: /cvsroot/gforge/gforge/www/include/html.php,v
retrieving revision 1.19
diff -u -r1.19 html.php
--- www/include/html.php 3 Feb 2003 09:28:53 -0000 1.19
+++ www/include/html.php 14 Feb 2003 14:18:17 -0000
@@ -92,7 +92,7 @@
function html_image($src,$width,$height,$args,$display=1) {
global $sys_images_url,$sys_images_secure_url,$HTML;
$s = ((session_issecure()) ? $sys_images_secure_url : $sys_images_url );
- $return = ('<img src="' . $s . $HTML->imgroot . $src .'"');
+ $return = ('<img src="' . $s . (eregi('dbimage.php', $src) ? '' :
$HTML->imgroot) . $src .'"');
reset($args);
while(list($k,$v) = each($args)) {
$return .= ' '.$k.'="'.$v.'"';
----------------------------------------------------------------------
You can respond by visiting:
http://gforge.org/tracker/?func=detail&atid=105&aid=229&group_id=1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gforge-devel] [ gforge-Bugs-229 ] bug when calling html_dbimage,
noreply <=