Update of /cvsroot/phpwsbb/phpwsbb/boost
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3113/boost
Modified Files:
update.php
Log Message:
jydallstar tells me I can suppress automatic sets in Item->commit(). Still want to test it
Index: update.php
===================================================================
RCS file: /cvsroot/phpwsbb/phpwsbb/boost/update.php,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -d -r1.44 -r1.45
*** update.php 3 Oct 2004 23:17:39 -0000 1.44
--- update.php 25 Oct 2004 14:45:34 -0000 1.45
***************
*** 90,94 ****
if(strpos($thread->_label, $_SESSION['translate']->it('STICKY'))) {
$thread->setLabel(str_replace('[' . $_SESSION['translate']->it('STICKY') . '] ', '', $thread->_label));
! $thread->commit();
$content .= 'Updated sticky thread ' . $thread->_label . '.<br />';
}
--- 90,94 ----
if(strpos($thread->_label, $_SESSION['translate']->it('STICKY'))) {
$thread->setLabel(str_replace('[' . $_SESSION['translate']->it('STICKY') . '] ', '', $thread->_label));
! $thread->commit(NULL, true);
$content .= 'Updated sticky thread ' . $thread->_label . '.<br />';
}
***************
*** 96,100 ****
if(strpos($thread->_label, $_SESSION['translate']->it('LOCKED'))) {
$thread->setLabel(str_replace('[' . $_SESSION['translate']->it('LOCKED') . '] ', '', $thread->_label));
! $thread->commit();
$content .= 'Updated locked thread ' . $thread->_label . '.<br />';
}
--- 96,100 ----
if(strpos($thread->_label, $_SESSION['translate']->it('LOCKED'))) {
$thread->setLabel(str_replace('[' . $_SESSION['translate']->it('LOCKED') . '] ', '', $thread->_label));
! $thread->commit(NULL, true);
$content .= 'Updated locked thread ' . $thread->_label . '.<br />';
}
***************
*** 115,119 ****
if(strpos($message->_label, $_SESSION['translate']->it('STICKY'))) {
$message->setLabel(str_replace('[' . $_SESSION['translate']->it('STICKY') . '] ', '', $message->_label));
! $message->commit();
$content .= 'Updated message ' . $message->_label . '.<br />';
}
--- 115,119 ----
if(strpos($message->_label, $_SESSION['translate']->it('STICKY'))) {
$message->setLabel(str_replace('[' . $_SESSION['translate']->it('STICKY') . '] ', '', $message->_label));
! $message->commit(NULL, true);
$content .= 'Updated message ' . $message->_label . '.<br />';
}
***************
*** 121,125 ****
if(strpos($message->_label, $_SESSION['translate']->it('LOCKED'))) {
$message->setLabel(str_replace('[' . $_SESSION['translate']->it('LOCKED') . '] ', '', $message->_label));
! $message->commit();
$content .= 'Updated message ' . $message->_label . '.<br />';
}
--- 121,125 ----
if(strpos($message->_label, $_SESSION['translate']->it('LOCKED'))) {
$message->setLabel(str_replace('[' . $_SESSION['translate']->it('LOCKED') . '] ', '', $message->_label));
! $message->commit(NULL, true);
$content .= 'Updated message ' . $message->_label . '.<br />';
}
|