From 3304c5a963150449bcb8239969a9c06fc4b9a7fc Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Thu, 28 Jun 2012 13:30:40 +0000 Subject: support tags with attributes --- langs.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'langs.inc.php') diff --git a/langs.inc.php b/langs.inc.php index a7e805c1a..9055f44e9 100644 --- a/langs.inc.php +++ b/langs.inc.php @@ -199,7 +199,10 @@ function _h($s, $args = null, $tag = 'p') { if (is_array($args)) $s = vsprintf(_t($s), $args); - echo sprintf('<%s>%s', $tag, _t($s), $tag); + $close_tag = explode(' ', $tag); + $close_tag = array_shift($close_tag); + + echo sprintf('<%s>%s', $tag, _t($s), $close_tag); } /** -- cgit v1.2.1