don't call text if you don't mean it
darcs-hash:20080708235004-84dde-bca47ff45828387ed256195ef5cf9051f99a5163.gz
This commit is contained in:
parent
91af9de7e4
commit
485314fe20
|
@ -97,7 +97,7 @@ function common_element_end($tag) {
|
||||||
'br', 'param', 'img', 'area',
|
'br', 'param', 'img', 'area',
|
||||||
'input', 'col');
|
'input', 'col');
|
||||||
global $xw;
|
global $xw;
|
||||||
# TODO check namespace
|
# XXX: check namespace
|
||||||
if (in_array($tag, $empty_tag)) {
|
if (in_array($tag, $empty_tag)) {
|
||||||
$xw->endElement();
|
$xw->endElement();
|
||||||
} else {
|
} else {
|
||||||
|
@ -108,7 +108,9 @@ function common_element_end($tag) {
|
||||||
function common_element($tag, $attrs=NULL, $content=NULL) {
|
function common_element($tag, $attrs=NULL, $content=NULL) {
|
||||||
common_element_start($tag, $attrs);
|
common_element_start($tag, $attrs);
|
||||||
global $xw;
|
global $xw;
|
||||||
|
if ($content) {
|
||||||
$xw->text($content);
|
$xw->text($content);
|
||||||
|
}
|
||||||
common_element_end($tag);
|
common_element_end($tag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user