[evolvis-commits] r17746: fix XHTML of output: add empty alt attributes to images without them
mirabilos at evolvis.org
mirabilos at evolvis.org
Wed Nov 30 16:28:56 CET 2011
Author: mirabilos
Date: 2011-11-30 16:28:56 +0100 (Wed, 30 Nov 2011)
New Revision: 17746
Modified:
trunk/gforge_base/evolvisforge-5.1/src/www/include/html.php
Log:
fix XHTML of output: add empty alt attributes to images without them
(not quite in the sense of accessibility, but hey…)
Modified: trunk/gforge_base/evolvisforge-5.1/src/www/include/html.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/include/html.php 2011-11-30 15:28:51 UTC (rev 17745)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/include/html.php 2011-11-30 15:28:56 UTC (rev 17746)
@@ -112,6 +112,7 @@
if ($height) {
$args['height'] = $height;
}
+ $args['alt'] = "" . util_ifsetor($args['alt'], "");
return html_e('img', $args);
}
More information about the evolvis-commits
mailing list