aboutsummaryrefslogtreecommitdiffstats
path: root/langs.inc.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-06-28 13:30:40 +0000
committerRomain d'Alverny <rda@mageia.org>2012-06-28 13:30:40 +0000
commit3304c5a963150449bcb8239969a9c06fc4b9a7fc (patch)
tree6089733ea57b5f1933187f536f604ded87b44b90 /langs.inc.php
parent2c5cc8cc4b5827a0ad9c58ec76357183b7def167 (diff)
downloadwww-3304c5a963150449bcb8239969a9c06fc4b9a7fc.tar
www-3304c5a963150449bcb8239969a9c06fc4b9a7fc.tar.gz
www-3304c5a963150449bcb8239969a9c06fc4b9a7fc.tar.bz2
www-3304c5a963150449bcb8239969a9c06fc4b9a7fc.tar.xz
www-3304c5a963150449bcb8239969a9c06fc4b9a7fc.zip
support tags with attributes
Diffstat (limited to 'langs.inc.php')
-rw-r--r--langs.inc.php5
1 files changed, 4 insertions, 1 deletions
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</%s>', $tag, _t($s), $tag);
+ $close_tag = explode(' ', $tag);
+ $close_tag = array_shift($close_tag);
+
+ echo sprintf('<%s>%s</%s>', $tag, _t($s), $close_tag);
}
/**