This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, 6.1 has been updated
via 0b406926ccd452724386b09b827c5f13d0f5ed46 (commit)
from 8d332cebab8840d5f55832f81540c722444b0950 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=0b406926ccd452724386b09b827c5f13d0f5ed46
commit 0b406926ccd452724386b09b827c5f13d0f5ed46
Author: Franck Villaume <[email protected]>
Date: Tue May 22 10:57:57 2018 +0000
fix empty figcaption tag
diff --git a/src/www/include/Layout.class.php b/src/www/include/Layout.class.php
index efc02f2..da1fb8c 100644
--- a/src/www/include/Layout.class.php
+++ b/src/www/include/Layout.class.php
@@ -1261,11 +1261,11 @@ abstract class Layout extends FFError {
* @return string
*/
function html_chartid($chart_id = 'chart0', $figcaption_title = '') {
- $htmlcode = html_ao('figure');
- $htmlcode .= html_e('figcaption', array(), $figcaption_title,
false);
- $htmlcode .= html_ao('div', array('id' => $chart_id));
- $htmlcode .= html_ac(html_ap() -2);
- return $htmlcode;
+ $figcaption_htmlcode = '';
+ if ($figcaption_title) {
+ $figcaption_htmlcode = html_e('figcaption', array(),
$figcaption_title, false);
+ }
+ return html_e('figure', array(),
$figcaption_htmlcode.html_e('div', array('id' => $chart_id)));
}
/**
-----------------------------------------------------------------------
Summary of changes:
src/www/include/Layout.class.php | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits