From: <rlp...@us...> - 2003-10-03 22:11:26
|
Update of /cvsroot/tikiwiki/tiki/lib/wiki In directory sc8-pr-cvs1:/tmp/cvs-serv16222/lib/wiki Modified Files: wikilib.php Log Message: Forum speedup. Must run db/tiki_1.7to1.8.sql. Probably has bugs! Index: wikilib.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/wiki/wikilib.php,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- wikilib.php 2 Oct 2003 14:18:06 -0000 1.36 +++ wikilib.php 3 Oct 2003 22:10:52 -0000 1.37 @@ -218,7 +218,8 @@ // in tiki_categorized_objects update objId $newcathref = 'tiki-index.php?page=' . urlencode($newName_as); - $query = "update `tiki_categorized_objects` set `objId`=?,`name`=?,`href`=? where `objId`=?"; + $query = "update `tiki_categorized_objects` set + `objId`=?,`name`=?,`href`=? where `objId`=?"; $this->query($query, array( $newName_as, $newName_as, @@ -231,8 +232,9 @@ // $this->query($query); // in tiki_comments update object - $query = "update `tiki_comments` set `object`='$newId' where `object`='$oldId'"; - $this->query($query); + $query = "update `tiki_comments` set + `object`=? where `object`=?"; + $this->query($query, array( $newName, $oldName ) ); // in tiki_mail_events by object $query = "update `tiki_mail_events` set `object`='$newId' where `object`='$oldId'"; |