Changeset 2195 for trunk/bp-forums.php
- Timestamp:
- 12/17/2009 01:09:18 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-forums.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums.php
r2194 r2195 309 309 do_action( 'bbpress_init' ); 310 310 311 $query = new BB_Query( 'topic', array( 'page' => 1, 'per_page' => false, 'count' => true ) ); 312 return $query->count; 311 $query = new BB_Query( 'topic', array( 'page' => 1, 'per_page' => -1, 'count' => true ) ); 312 $count = $query->count; 313 $query = null; 314 315 return $count; 313 316 } 314 317 … … 321 324 $user_id = ( $bp->displayed_user->id ) ? $bp->displayed_user->id : $bp->loggedin_user->id; 322 325 323 $query = new BB_Query( 'topic', array( 'topic_author_id' => $user_id, 'page' => 1, 'per_page' => false, 'count' => true ) ); 324 return $query->count; 326 $query = new BB_Query( 'topic', array( 'topic_author_id' => $user_id, 'page' => 1, 'per_page' => -1, 'count' => true ) ); 327 $count = $query->count; 328 $query = null; 329 330 return $count; 325 331 } 326 332
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)