Update of /cvsroot/phpwsbb/phpwsbb/class
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26558/class
Modified Files:
Message.php
Log Message:
Cleaned up some "undefined variable" errors
Index: Message.php
===================================================================
RCS file: /cvsroot/phpwsbb/phpwsbb/class/Message.php,v
retrieving revision 1.64
retrieving revision 1.65
diff -C2 -d -r1.64 -r1.65
*** Message.php 17 Sep 2004 15:59:59 -0000 1.64
--- Message.php 19 Sep 2004 03:51:01 -0000 1.65
***************
*** 121,125 ****
$tags['BG'] = $bg;
$tags['QUOTE'] = '<img src="./images/phpwsbb/reply_message.png" border="0" alt="' . $_SESSION['translate']->it('Quote this message') . '" title="' . $_SESSION['translate']->it('Quote this message') . '" /> '
! .PHPWS_Text::moduleLink($_SESSION['translate']->it('Quote'), 'phpwsbb', array('PHPWSBB_MAN_OP'=>reply, 'PHPWS_MAN_ITEMS'=>$this->_tid, 'reply_to'=>$this->getId()));
$tags['NAV'] = '<a href="#bb-top" class="nav">'.$_SESSION["translate"]->it('Back to top').'</a>';
$tags['ID'] = $this->getId();
--- 121,125 ----
$tags['BG'] = $bg;
$tags['QUOTE'] = '<img src="./images/phpwsbb/reply_message.png" border="0" alt="' . $_SESSION['translate']->it('Quote this message') . '" title="' . $_SESSION['translate']->it('Quote this message') . '" /> '
! .PHPWS_Text::moduleLink($_SESSION['translate']->it('Quote'), 'phpwsbb', array('PHPWSBB_MAN_OP'=>'reply', 'PHPWS_MAN_ITEMS'=>$this->_tid, 'reply_to'=>$this->getId()));
$tags['NAV'] = '<a href="#bb-top" class="nav">'.$_SESSION["translate"]->it('Back to top').'</a>';
$tags['ID'] = $this->getId();
***************
*** 308,312 ****
if (is_null($poster))
$poster = $result['guestname'] . ' (' . $_SESSION['translate']->it('GUEST') . ')';
! $this->_body = '
[quote="'.$poster.'"]'.trim($result['body']).'
[/quote]

';
}
$form->add('Message_body', 'textarea', $this->_body);
--- 308,312 ----
if (is_null($poster))
$poster = $result['guestname'] . ' (' . $_SESSION['translate']->it('GUEST') . ')';
! $this->_body = '[quote="'.$poster.'"]'.trim($result['body'])."\n[/quote]\n\n";
}
$form->add('Message_body', 'textarea', $this->_body);
|