/* Block quoting last post reply */
if( $this->request['qpid'] )
{
/* Internal init */
$tid = intval( $this->request['t'] );
/* Do we have topic ID? */
if( $tid )
{
# Tmp topic
$t = $this->DB->buildAndFetch( array( 'select' => 'pid as last_post_id', 'from' => 'posts', 'where' => 'new_topic = 0 AND topic_id = ' . $tid, 'order' => 'post_date DESC', 'limit' => array( 0, 1 ) ) );
# Check it
if( $this->request['qpid'] == $t['last_post_id'] )
{
$this->registry->getClass('output')->silentRedirect( $this->settings['base_url'] . 'app=forums&module=post§ion=post&do=reply_post&f='. $this->request['f'] . '&t='. $this->request['t'] );
}
}
}
/* Do the rest job */