[Troll] fix some broken img

Thierry Thomas thierry@pompo.net
Sat, 16 Mar 2002 23:11:59 +0100


Hello,

The following patch fix some broken img:


diff -ur troll.orig/lib/Troll.php troll/lib/Troll.php
--- troll.orig/lib/Troll.php	Tue Feb  5 05:59:18 2002
+++ troll/lib/Troll.php	Sat Mar 16 22:50:27 2002
@@ -330,7 +330,7 @@
     echo '<td valign="bottom" width="58%">';
 
     for ($i = 0; $i < $indentlevel; $i++) {
-        Horde::pimg('blank.gif', ' ', 'width="9" height="1" align="' . $a . '"');
+        Horde::pimg('blank.gif', 'alt ="" width="9" height="1" align="' . $a . '"');
     }
 
     if ($hasreplies) {
diff -ur troll.orig/showthread.php troll/showthread.php
--- troll.orig/showthread.php	Thu Jan 10 15:01:34 2002
+++ troll/showthread.php	Sat Mar 16 22:24:03 2002
@@ -138,18 +138,18 @@
 
 <table border="0" width=98% cellspacing="0" cellpadding="0">
 <tr>
-<td valign=bottom width=2%><img src="../graphics/blank.gif" width=20 height=1 alt="" border="0"></td>
+<td valign=bottom width=2%><img src="graphics/blank.gif" width=20 height=1 alt="" border="0"></td>
 <td align=center><font face="Verdana,Arial"><b>Overview</b></font></td>
 </tr>
 
 <tr>
-<td valign=bottom  width=2%><img src="../graphics/blank.gif" width=20 height=1 alt="" border="0"></td>
-<td colspan=4><img src="../graphics/blank.gif" width=1 height=1></td>
+<td valign=bottom  width=2%><img src="graphics/blank.gif" width=20 height=1 alt="" border="0"></td>
+<td colspan=4><img src="graphics/blank.gif" width=1 height=1></td>
 </tr>
 
 <tr>
-<td valign=bottom  width=2%><img src="../graphics/blank.gif" width=20 height=1 alt="" border="0"></td>
-<td colspan=4 bgcolor=black><img src="../graphics/blackpixel.gif" width=1 height=1></td>
+<td valign=bottom  width=2%><img src="graphics/blank.gif" width=20 height=1 alt="" border="0"></td>
+<td colspan=4 bgcolor=black><img src="graphics/blackpixel.gif" width=1 height=1></td>
 </tr>
 </table>
 
@@ -226,13 +226,13 @@
 		
 <table border="0" width=98% cellspacing="0" cellpadding="0">
 <tr>
-<td valign=bottom  width=2%><img src="../graphics/blank.gif" width=20 height=1 alt="" border="0"></td>
-<td colspan=4><img src="../graphics/blank.gif" width=1 height=1></td>
+<td valign=bottom  width=2%><img src="graphics/blank.gif" width=20 height=1 alt="" border="0"></td>
+<td colspan=4><img src="graphics/blank.gif" width=1 height=1></td>
 </tr>
 
 <tr>
-<td valign=bottom  width=2%><img src="../graphics/blank.gif" width=20 height=1 alt="" border="0"></td>
-<td colspan=4 bgcolor=black><img src="../graphics/blackpixel.gif" width=1 height=1></td>
+<td valign=bottom  width=2%><img src="graphics/blank.gif" width=20 height=1 alt="" border="0"></td>
+<td colspan=4 bgcolor=black><img src="graphics/blackpixel.gif" width=1 height=1></td>
 </tr>
 </table>
 <P>
@@ -264,13 +264,13 @@
 </script>
 <table border="0" width=98% cellspacing="0" cellpadding="0">
 <tr>
-<td valign=bottom  width=2%><img src="../graphics/blank.gif" width=20 height=1 alt="" border="0"></td>
-<td colspan=4><img src="../graphics/blank.gif" width=1 height=1></td>
+<td valign=bottom  width=2%><img src="graphics/blank.gif" width=20 height=1 alt="" border="0"></td>
+<td colspan=4><img src="graphics/blank.gif" width=1 height=1></td>
 </tr>
 
 <tr>
-<td valign=bottom  width=2%><img src="../graphics/blank.gif" width=20 height=1 alt="" border="0"></td>
-<td colspan=4 bgcolor=black><img src="../graphics/blackpixel.gif" width=1 height=1></td>
+<td valign=bottom  width=2%><img src="graphics/blank.gif" width=20 height=1 alt="" border="0"></td>
+<td colspan=4 bgcolor=black><img src="graphics/blackpixel.gif" width=1 height=1></td>
 </tr>
 </table>
 
diff -ur troll.orig/templates/newsgroups/head.inc troll/templates/newsgroups/head.inc
--- troll.orig/templates/newsgroups/head.inc	Sun Feb  3 04:19:46 2002
+++ troll/templates/newsgroups/head.inc	Sat Mar 16 22:46:18 2002
@@ -5,7 +5,7 @@
  <td class="header" align="left">
   &nbsp;<b><?= _("Newsgroup Browser") ?></b>
   <?= Horde::link('javascript:submitAction(' . TROLL_REFRESH_NEWSGROUPS . ')', _("Reload View")) ?>
-  <?= Horde::img('reload.gif', _("Reload View"), 'hspace="2"') ?></a>
+  <?= Horde::img('reload.gif', 'alt="' . _("Reload View") . '" hspace="2"') ?></a>
  </td>
  <td class="light" align="right">
   <?php if ($prefs->getValue('subscribe')): ?>
diff -ur troll.orig/threadoverview.php troll/threadoverview.php
--- troll.orig/threadoverview.php	Thu Jan 24 20:50:23 2002
+++ troll/threadoverview.php	Sat Mar 16 22:21:33 2002
@@ -187,11 +187,11 @@
 <br>
 <table border="0" width=90% cellspacing="0" cellpadding="0">
 <tr>
-<td colspan=4><img src="../graphics/blank.gif" width=1 height=1></td>
+<td colspan=4><img src="graphics/blank.gif" width=1 height=1></td>
 </tr>
 <tr>
-<!-- <td valign=bottom  width=2%><img src="../graphics/blank.gif" width=20 height=1 alt="" border="0"></td> -->
-<td colspan=4 bgcolor=black><img src="../graphics/blackpixel.gif" width=1 height=1></td>
+<!-- <td valign=bottom  width=2%><img src="graphics/blank.gif" width=20 height=1 alt="" border="0"></td> -->
+<td colspan=4 bgcolor=black><img src="graphics/blackpixel.gif" width=1 height=1></td>
 </tr>
 </table>
 </div>



-- 
Th. Thomas.