Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This adjustment will suppress php warning messages of 'division by zero' as per thekmens suggestion
- find this block - starting around luine 54 in /includes/bp-cubepoint-templattags.php
- $this->pag_links = paginate_links( array(
- 'base' => $bp->displayed_user->domain . $bp->cubepoint->slug .'/'. $bp->cubepoint->points_slug .'/%_%',
- 'format' => '%#%',
- 'total' => ceil( (int) $this->total_point_count / (int) $this->pag_per_page ),
- 'current' => (int) $this->pag_page,
- 'prev_text' => '←',
- 'next_text' => '→',
- 'mid_size' => 1
- ));
- $this->pag_table_links = paginate_links( array(
- 'base' => $bp->displayed_user->domain . $bp->cubepoint->slug .'/'. $bp->cubepoint->table_slug .'/%_%',
- 'format' => '%#%',
- 'total' => ceil( (int) $this->total_point_count / (int) $this->pag_per_page ),
- 'current' => (int) $this->pag_page,
- 'prev_text' => '←',
- 'next_text' => '→',
- 'mid_size' => 1
- ));
- Note the lines beginning 'total' and the word ceil, prepend @ to ceil
- The lines should now read as:
- 'total' => @ceil( (int) $this->total_point_count / (int) $this->pag_per_page ),
- simply suppresses the display of error/warning messages
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement