From: <jhe...@us...> - 2002-11-28 14:31:38
|
Update of /cvsroot/upcase-project/UpCase/lib In directory sc8-pr-cvs1:/tmp/cvs-serv9459 Modified Files: uc_object.php Log Message: little refactoring, disabled reading of description (unused) Index: uc_object.php =================================================================== RCS file: /cvsroot/upcase-project/UpCase/lib/uc_object.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** uc_object.php 5 Aug 2002 08:29:02 -0000 1.2 --- uc_object.php 28 Nov 2002 14:31:35 -0000 1.3 *************** *** 18,22 **** { global $ucsql_objget; - global $ucsql_objadd; global $uc_translations; --- 18,21 ---- *************** *** 30,47 **** . $this->db->ErrorMsg()); if ($res->RowCount() == 0) ! { ! // Create the object accessible only by admins ! // This is the first record with NULL as gid ! $query = sprintf($ucsql_objadd, $this->oid); ! $this->db->Execute($query) or die("Unable to create object: " ! . $this->db->ErrorMsg()); ! $this->newObject = true; ! } // read the object description ! $this->description = new UcObjectDescription($oid); ! $this->description->parse($uc_translations["object_descriptions"]); } ! function getDescription($lang) { --- 29,47 ---- . $this->db->ErrorMsg()); if ($res->RowCount() == 0) ! $this->register(); // read the object description ! //$this->description = new UcObjectDescription($oid); ! //$this->description->parse($uc_translations["object_descriptions"]); } ! ! function register() ! { ! $query = sprintf($GLOBALS["ucsql_objadd"], $this->oid); ! $this->db->Execute($query) ! or die("Unable to create object: " . $this->db->ErrorMsg()); ! $this->newObject = true; ! } ! function getDescription($lang) { |