Version 3.4.5

This commit is contained in:
Neo committed 2025-12-19 00:38:12 -08:00
1 parent fb6b5baabc
commit e4478369d8
1360 files changed
+228921 -179445

No files matched your search

@@ -2,9 +2,9 @@
/**
* <pre>
* Invision Power Services
* IP.Board v3.3.4
* IP.Board v3.4.5
* Reputation configuration for application
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
* Last Updated: $Date: 2013-05-04 20:26:37 -0400 (Sat, 04 May 2013) $
* </pre>
*
* @author $author$
@@ -13,7 +13,7 @@
* @package IP.Board
* @subpackage Forums
* @link http://www.invisionpower.com
* @version $Rev: 10914 $
* @version $Rev: 12227 $
*/
if ( ! defined( 'IN_IPB' ) )
@@ -48,7 +48,7 @@ class reputation_forums
*
* @param string 'given' if we want to return items as user has liked
* 'received' if we want to fetch items a user has posted that others have liked
'most' if we want to fetch 'most' repped items
* 'most' if we want to fetch 'most' repped items
* @param array Member this applies to
*
* @return array Parameters to pass to ipsRegistry::DB()->build
@@ -74,7 +74,7 @@ class reputation_forums
'where' => 'p.queued=' . ipsRegistry::getClass('class_forums')->fetchPostHiddenFlag( 'visible' ),
'add_join' => array( array( 'select' => '',
'from' => array( 'topics' => 't' ),
'where' => 't.tid=p.topic_id AND t.approved=' . ipsRegistry::getClass('class_forums')->fetchTopicHiddenFlag( 'visible' ) . ' AND ' . ( empty( $allowedForumIDs ) ? '1=0' : ipsRegistry::DB()->buildWherePermission( $allowedForumIDs, 't.forum_id', FALSE ) ),
'where' => 't.tid=p.topic_id AND t.approved=' . ipsRegistry::getClass('class_forums')->fetchTopicHiddenFlag( 'visible' ) . ' AND ' . ( empty( $allowedForumIDs ) ? '1=0' : "t.forum_id IN(" . implode( ',', $allowedForumIDs ) . ")" ),
'type' => 'inner' ) ) # join must be INNER to prevent loading ALL the post IDs without a matching topic row
),
/* Used in second query to fetch actual data */
@@ -87,10 +87,8 @@ class reputation_forums
array( 'select' => 't.*, t.title as topic_title',
'from' => array( 'topics' => 't' ),
'where' => 'p.topic_id=t.tid' ),
array( 'select' => 'f.*',
'from' => array( 'forums' => 'f' ),
'where' => 'f.id=t.forum_id' ) )
);
)
);
}
else
{
@@ -129,7 +127,7 @@ class reputation_forums
" t.tid<>0 AND " . // is valid
"t.approved=" . ipsRegistry::getClass('class_forums')->fetchTopicHiddenFlag( 'visible' ) . " AND " . // topic is visible
"p.queued=" . ipsRegistry::getClass('class_forums')->fetchPostHiddenFlag( 'visible' ) . " AND " . // post is visible
( empty( $allowedForumIDs ) ? '1=0' : ipsRegistry::DB()->buildWherePermission( $allowedForumIDs, 't.forum_id', FALSE ) ), // we have permission to view
( empty( $allowedForumIDs ) ? '1=0' : "t.forum_id IN(" . implode( ',', $allowedForumIDs ) . ")" ), // we have permission to view
);
}
}
@@ -194,7 +192,7 @@ class reputation_forums
*/
public function display( $results )
{
return ipsRegistry::getClass('output')->getTemplate( 'profile' )->tabReputation_posts( $results );
return ipsRegistry::getClass('output')->getTemplate('profile')->tabReputation_posts( $results );
}
}