closing "/" when using filelist 1.2.8 release

Use GitHub to post bug reports and error descriptions for phpwcms. Describe your problem detailed!
Locked
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

closing "/" when using filelist 1.2.8 release

Post by cyrano »

Hi all,

i found aout rendering in XHTML mode i get errors in validating img tag is not closing with end "/".

right?

found out in folder"include/inc_front/content" the file "cnt7.article.inc.php",
line 72-99 and changed it (see bold one: adding a space and a / )
now runs well :-)
$file_name = html_specialchars($file_row["f_name"]);
$file_tmp = '<tr><td><img src="img/icons/small_'.extimg($file_row["f_ext"]).'" border="0" alt="" />';
$file_tmp .= spacer(3,1).'</td><td'.$file_class1.'>';
$file_tmp .= '<a href="download.php?'.$file_row["f_hash"].'" title="'.$file_name.'" ';
$file_tmp .= 'target="_blank">'.$file_name.'</a></td><td align="right"'.$file_class2.'>&nbsp;'.fsizelong($file_row["f_size"])."</td></tr>\n";

if(isset($file_text[$key]) && trim($file_text[$key]) != '') {
$file_tmp .= '<tr><td>'.spacer(1,1).'</td><td'.$file_class3.' colspan="2">'.$file_text[$key]."</td></tr>\n";
}
$fxc[$key] = $file_tmp;

}
}
}
mysql_free_result($file_result);
}
}

$fxc = array_diff($fxc, array(''));
$file_tmp = implode('<tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="3" border="0" /></td></tr>'."\n", $fxc);

if($file_tmp != '') {
$CNT_TMP .= '<table border="0" cellspacing="0" cellpadding="0">';
$CNT_TMP .= "\n" . $file_tmp . "</table>";
}
}

?>
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
User avatar
Oliver Georgi
Site Admin
Posts: 9905
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Yes maybe - not all content parts are patched yet.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Locked