Changeset 1830 for trunk/bb-includes/functions.bb-core.php
- Timestamp:
- 12/08/2008 05:02:16 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/bb-includes/functions.bb-core.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bb-includes/functions.bb-core.php
r1825 r1830 219 219 $dots = false; 220 220 221 $empty_format = ''; 222 if ( strpos( $format, '?' ) === 0 ) { 223 $empty_format = '?'; 224 } 225 221 226 if ( $prev_next && $current && 1 < $current ) { 222 $link = str_replace( '%_%', 2 == $current ? '': $format, $base );227 $link = str_replace( '%_%', 2 == $current ? $empty_format : $format, $base ); 223 228 $link = str_replace( '%#%', $current - 1, $link ); 229 $link = str_replace( '?&', '?', $link ); 224 230 if ( $add_args ) 225 231 $link = add_query_arg( $add_args, $link ); … … 236 242 } else { 237 243 if ( $show_all || ( $n <= $end_size || ( $current && $n >= $current - $mid_size && $n <= $current + $mid_size ) || $n > $total - $end_size ) ) { 238 $link = str_replace( '%_%', 1 == $n ? '': $format, $base );244 $link = str_replace( '%_%', 1 == $n ? $empty_format : $format, $base ); 239 245 $link = str_replace( '%#%', $n, $link ); 246 $link = str_replace( '?&', '?', $link ); 240 247 if ( $add_args ) 241 248 $link = add_query_arg( $add_args, $link );
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)