[Logicampus-cvs] logicampus/src/logicreate/lib/lob lc_lob_xml.php, 1.3, 1.4
Brought to you by:
trilexcom
From: Mark K <har...@us...> - 2008-03-02 22:29:29
|
Update of /cvsroot/logicampus/logicampus/src/logicreate/lib/lob In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv6016/lib/lob Modified Files: lc_lob_xml.php Log Message: Fix bug linking a LOB to a user from a backup file. Index: lc_lob_xml.php =================================================================== RCS file: /cvsroot/logicampus/logicampus/src/logicreate/lib/lob/lc_lob_xml.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** lc_lob_xml.php 2 Mar 2008 21:59:00 -0000 1.3 --- lc_lob_xml.php 2 Mar 2008 22:29:24 -0000 1.4 *************** *** 92,104 **** $lobMetaObj = Lc_Lob_Xml::processLobMeta($n); - $lobUserObj = new LobUserLink(); - - /* - $lobUserObj->set('lobRepoEntryId',$lob->getPrimaryKey()); - $lobUserObj->set('userId',$u->userId); - $lobUserObj->set('isOwner','1'); - $lobUserObj->save(); - */ - //make the final wrapper object $lcLob = new Lc_Lob(); --- 92,95 ---- *************** *** 140,143 **** --- 131,138 ---- $tag = $childNode->tagName; + //remove the XML namespace + if ( substr($tag,0,4) == 'lob:') { + $tag = substr($tag,4); + } $subchild = $childNode->childNodes; $meta->set($tag, trim($subchild->item(0)->nodeValue) ); |