mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 00:09:06 +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;
|
||||
}
|
||||
|
||||
function LSdebug_print($return=false) {
|
||||
function LSdebug_print($return=false,$ul=true) {
|
||||
if (( $GLOBALS['LSdebug_fields'] ) && (LSdebug)) {
|
||||
$txt='<ul>';
|
||||
if ($ul) $txt='<ul>'; else $ul="";
|
||||
foreach($GLOBALS['LSdebug_fields'] as $debug) {
|
||||
if (is_array($debug)||is_object($debug)) {
|
||||
$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.='</ul>';
|
||||
if ($ul) $txt.='</ul>';
|
||||
$GLOBALS['Smarty'] -> assign('LSdebug',$txt);
|
||||
if ($return) {
|
||||
return $txt;
|
||||
|
|
Loading…
Reference in a new issue