From 003327b581d825dd686729ebd6e60f53774a524a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 31 Oct 2009 16:26:41 +0000 Subject: [PATCH] Some improvements --- inc/modules/member/what-reflinks.php | 7 ++++++- templates/de/html/member/member_reflinks_row.tpl | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/inc/modules/member/what-reflinks.php b/inc/modules/member/what-reflinks.php index b44b55d373..5f746a4933 100644 --- a/inc/modules/member/what-reflinks.php +++ b/inc/modules/member/what-reflinks.php @@ -97,7 +97,12 @@ if (SQL_NUMROWS($result) > 0) { $size = filesize($test); } - $row['alternate'] = '{?MAIN_TITLE?} - {?SLOGAN?}'; + // Empty alternative text? + if (empty($row['alternate'])) { + // Then set default + $row['alternate'] = '{?MAIN_TITLE?} - {?SLOGAN?}'; + } // END - if + if ($size > 0) $row['alternate'] .= ' (' .translateComma(round($size / 102.4) / 10) . ' {--KBYTES--})'; // Add some more data diff --git a/templates/de/html/member/member_reflinks_row.tpl b/templates/de/html/member/member_reflinks_row.tpl index 53f7a3a376..374260bad7 100644 --- a/templates/de/html/member/member_reflinks_row.tpl +++ b/templates/de/html/member/member_reflinks_row.tpl @@ -18,7 +18,7 @@   -
<a href="{?URL?}/click.php?user=$content[userid]&banner=$content[id]"
+	
<a href="{?URL?}/click.php?user=$content[userid]&banner=$content[id]"
  target="_blank"><img src="{?URL?}/view.php?user=$content[userid]&banner=$content[id]"
  alt="$content[alternate]" title="$content[alternate]" border="0" /></a>
-- 2.39.5