Version 3.4.6

This commit is contained in:
Neo committed 2025-12-19 00:40:53 -08:00
1 parent e4478369d8
commit b45ea0dffb
1568 files changed
+155104 -161665

No files matched your search

@@ -2,18 +2,18 @@
/**
* <pre>
* Invision Power Services
* IP.Board v3.4.5
* IP.Board v3.4.6
* Moderator actions
* Last Updated: $Date: 2013-05-08 12:08:00 -0400 (Wed, 08 May 2013) $
* Last Updated: $Date: 2013-09-04 23:48:12 -0400 (Wed, 04 Sep 2013) $
* </pre>
*
* @author $Author: bfarber $
* @author $Author: rashbrook $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/company/standards.php#license
* @package IP.Board
* @subpackage Forums
* @link http://www.invisionpower.com
* @version $Revision: 12237 $
* @version $Revision: 12345 $
*/
if ( ! defined( 'IN_IPB' ) )
@@ -374,7 +374,8 @@ class app_forums_classes_topics
'sortField' => 'post_date',
'sortOrder' => 'desc',
'topicId' => array( $tid ),
'limit' => 1 ) );
'limit' => 1,
'forceIndex' => 'topic_id' ) );
$last_post = array_pop( $_post );
@@ -383,7 +384,8 @@ class app_forums_classes_topics
'sortField' => 'post_date',
'sortOrder' => 'asc',
'topicId' => array( $tid ),
'limit' => 1 ) );
'limit' => 1,
'forceIndex' => 'topic_id' ) );
$first_post = array_pop( $_post );
@@ -1069,7 +1071,7 @@ class app_forums_classes_topics
/* Fetch them */
$this->DB->build( array( 'select' => 'p.*, p.' . $this->getPostTableField( 'ip_address', $isArchived ) . ' as post_ip',
'from' => array( $this->getPostTableField( '_table_', $isArchived ) => 'p' ),
'from' => array( $this->getPostTableField( '_table_', $isArchived ) => 'p'. ( isset($filters['forceIndex'] ) ? ' USE INDEX(' . $this->getPostTableField( $filters['forceIndex'], $isArchived ). ')':'') ),
'where' => implode( ' AND ', $where ),
'limit' => $limit ? $limit : '',
'order' => $order ? $order : 'p.' . $this->getPostTableField( 'pid', $isArchived ) . ' asc',