|
From: Jon O. <jon...@us...> - 2006-09-17 14:39:27
|
Update of /cvsroot/mxbb/mx_simpledoc/simpledoc/includes In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv25469/modules/mx_simpledoc/simpledoc/includes Modified Files: functions_node.php Log Message: Ok, several annoying JS bugs and more are solved... Index: functions_node.php =================================================================== RCS file: /cvsroot/mxbb/mx_simpledoc/simpledoc/includes/functions_node.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** functions_node.php 17 Jun 2006 20:50:47 -0000 1.2 --- functions_node.php 17 Sep 2006 14:39:23 -0000 1.3 *************** *** 44,47 **** --- 44,49 ---- var $chmodDir = 777; + var $error = false; + function Node($id = '') { *************** *** 55,58 **** --- 57,62 ---- $this->path = $this->root.'/'.$this->id; $this->level = substr_count($this->id, '/'); + + //trigger_error("Info: '{$this->path}' ", E_USER_ERROR); if ($this->id) { if (IoFile::exists($this->path)) { *************** *** 74,77 **** --- 78,82 ---- function moveUp() { + trigger_error("Node.moveUp() failed, this action cannot be executed for the root element", E_USER_ERROR); if (!$this->id) { return trigger_error("Node.moveUp() failed, this action cannot be executed for the root element", E_USER_ERROR); } $nodes = $this->loadSort($this->currFolder); |