From 7fe908c50c8dbc5cc05f571dbe11d66141caacd4 Mon Sep 17 00:00:00 2001
From: Marius Cramer <m.cramer@pixcept.de>
Date: Thu, 14 Nov 2013 09:01:22 -0500
Subject: [PATCH] Cleaning up code to match coding guidelines
---
interface/lib/classes/cmstree.inc.php | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/interface/lib/classes/cmstree.inc.php b/interface/lib/classes/cmstree.inc.php
index d83fb29..ead780e 100644
--- a/interface/lib/classes/cmstree.inc.php
+++ b/interface/lib/classes/cmstree.inc.php
@@ -48,13 +48,13 @@
// - icon :icon im node-tree, optional
// - modul :modul des Eintrages, noch nicht verwendet
// - doc_id :id des zugeh�rigen Dokumentes
-
+
public function node_list()
{
global $app;
-
+
$nodes = $app->db->queryAllRecords('SELECT * FROM media_cat order by sort, name');
-
+
$optionlist = array();
$my0 = new nodetree();
@@ -74,11 +74,11 @@
$$ordner->childs[] = &$$id;
}
}
-
- $this->ptree($my0, 0, $optionlist);
+
+ $this->ptree($my0, 0, $optionlist);
return is_array($nodes) ? $optionlist : false;
}
-
+
private function ptree($myobj, $tiefe, &$optionlist){
global $_SESSION;
$tiefe += 1;
@@ -87,7 +87,7 @@
if(is_array($myobj->childs) and ($_SESSION['s']['cat_open'][$id] == 1 or $tiefe <= 1)) {
foreach($myobj->childs as $val) {
// kategorie => str_repeat('- ',$tiefe) . $val->btext,
-
+
// Ergebnisse Formatieren
/*
if($tiefe == 0) {
@@ -104,7 +104,7 @@
} else {
$kategorie = "<div class='mnuLevel".$tiefe."'> <a href='treenavi.php?kat=".$val->id."' class='navtext' onclick=\"parent.content.location='media_list.php?search_media_cat_id=".$val->id."'\" style=\"text-decoration: none;\"><img src='../themes/default/icons/folder_closed.png' border='0'> ".$val->btext."</a></div>";
}
-
+
$optionlist[] = array( media_cat => $kategorie,
media_cat_id => $val->id,
depth => $tiefe);
@@ -114,4 +114,4 @@
}
}
-?>
\ No newline at end of file
+?>
--
Gitblit v1.9.1