Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/11/2012 09:32:04 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Breathing room for cast variables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs/bp-blogs-template.php

    r5686 r5729  
    117117            $this->blogs = bp_blogs_get_blogs( array( 'type' => $type, 'per_page' => $this->pag_num, 'page' => $this->pag_page, 'user_id' => $user_id, 'search_terms' => $search_terms ) );
    118118
    119         if ( !$max || $max >= (int)$this->blogs['total'] )
    120             $this->total_blog_count = (int)$this->blogs['total'];
     119        if ( !$max || $max >= (int) $this->blogs['total'] )
     120            $this->total_blog_count = (int) $this->blogs['total'];
    121121        else
    122             $this->total_blog_count = (int)$max;
     122            $this->total_blog_count = (int) $max;
    123123
    124124        $this->blogs = $this->blogs['blogs'];
     
    128128                $this->blog_count = count( $this->blogs );
    129129            } else {
    130                 $this->blog_count = (int)$max;
     130                $this->blog_count = (int) $max;
    131131            }
    132132        } else {
     
    134134        }
    135135
    136         if ( (int)$this->total_blog_count && (int)$this->pag_num ) {
     136        if ( (int) $this->total_blog_count && (int) $this->pag_num ) {
    137137            $this->pag_links = paginate_links( array(
    138138                'base'      => add_query_arg( 'bpage', '%#%' ),
    139139                'format'    => '',
    140                 'total'     => ceil( (int)$this->total_blog_count / (int)$this->pag_num ),
    141                 'current'   => (int)$this->pag_page,
     140                'total'     => ceil( (int) $this->total_blog_count / (int) $this->pag_num ),
     141                'current'   => (int) $this->pag_page,
    142142                'prev_text' => _x( '←', 'Blog pagination previous text', 'buddypress' ),
    143143                'next_text' => _x( '→', 'Blog pagination next text', 'buddypress' ),
Note: See TracChangeset for help on using the changeset viewer.