mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +01:00
LSdebug_print : added an optinal argument to control ul added
This commit is contained in:
parent
8715b5eb76
commit
ac9ec7930a
1 changed files with 3 additions and 3 deletions
|
@ -227,9 +227,9 @@ function LSdebug($data,$dump=false) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function LSdebug_print($return=false) {
|
function LSdebug_print($return=false,$ul=true) {
|
||||||
if (( $GLOBALS['LSdebug_fields'] ) && (LSdebug)) {
|
if (( $GLOBALS['LSdebug_fields'] ) && (LSdebug)) {
|
||||||
$txt='<ul>';
|
if ($ul) $txt='<ul>'; else $ul="";
|
||||||
foreach($GLOBALS['LSdebug_fields'] as $debug) {
|
foreach($GLOBALS['LSdebug_fields'] as $debug) {
|
||||||
if (is_array($debug)||is_object($debug)) {
|
if (is_array($debug)||is_object($debug)) {
|
||||||
$txt.='<li><pre>'.print_r($debug,true).'</pre></li>';
|
$txt.='<li><pre>'.print_r($debug,true).'</pre></li>';
|
||||||
|
@ -238,7 +238,7 @@ function LSdebug_print($return=false) {
|
||||||
$txt.='<li><pre>'.$debug.'</pre></li>';
|
$txt.='<li><pre>'.$debug.'</pre></li>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$txt.='</ul>';
|
if ($ul) $txt.='</ul>';
|
||||||
$GLOBALS['Smarty'] -> assign('LSdebug',$txt);
|
$GLOBALS['Smarty'] -> assign('LSdebug',$txt);
|
||||||
if ($return) {
|
if ($return) {
|
||||||
return $txt;
|
return $txt;
|
||||||
|
|
Loading…
Reference in a new issue