summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/classes
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/classes')
-rw-r--r--frontends/php/include/classes/ctag.inc.php2
-rw-r--r--frontends/php/include/classes/ctree.inc.php9
2 files changed, 7 insertions, 4 deletions
diff --git a/frontends/php/include/classes/ctag.inc.php b/frontends/php/include/classes/ctag.inc.php
index 9f9e9cbf..e05ac3f1 100644
--- a/frontends/php/include/classes/ctag.inc.php
+++ b/frontends/php/include/classes/ctag.inc.php
@@ -262,7 +262,7 @@
$this->options[$name] = unpack_object($value);
}
else if(!empty($value)){
- $this->options[$name] = htmlentities(str_replace(array("\r", "\n"), '', strval($value)),ENT_COMPAT,S_HTML_CHARSET);
+ $this->options[$name] = htmlentities(str_replace(array("\r", "\n"), '', strval($value)),ENT_COMPAT,S_HTML_CHARSET);
}
}
diff --git a/frontends/php/include/classes/ctree.inc.php b/frontends/php/include/classes/ctree.inc.php
index 369f5cde..affbfd3e 100644
--- a/frontends/php/include/classes/ctree.inc.php
+++ b/frontends/php/include/classes/ctree.inc.php
@@ -43,7 +43,8 @@ var $maxlevel=0;
if(!$this->CheckTree()){
$this->Destroy();
return false;
- } else {
+ }
+ else {
$this->CountDepth();
}
}
@@ -232,6 +233,7 @@ var $maxlevel=0;
}
public function GetImg($id,$img){
+
$img=str_replace('T','I',$img);
$img=str_replace('L','O',$img);
$ch = 'L';
@@ -243,6 +245,7 @@ var $maxlevel=0;
$ch='T';
}
$img.=$ch;
+
return $img;
}
@@ -254,10 +257,10 @@ var $maxlevel=0;
$this->tree[$id]['nodetype'] = 0;
$parentid=$cell['parentid'];
- $this->tree[$parentid]['childnodes'][] = $cell['id'];
+ $this->tree[$parentid]['childnodes'][] = $id;//$cell['id'];
$this->tree[$id]['nodelist'] = '';
- // echo $id.BR;
+// echo $parentid.' : '.$id.'('.$cell['id'].')'.SBR;
}
return true;