Info
- 3 posts
- 1 voice
- Started 1 year ago by DanielJuhl
- Latest reply from DanielJuhl
- This topic is not resolved
Page numbers missing in all paginations
-
- Posted 1 year ago #
I'm in a process of moving a bbPress installation from one server to another, and everything seems to work well, even with a switch from ligtthpd to apache2.
I just found one problem - all the paginations are broken. The "box" is made, and is clickable even to the right destination, but the numbers which should be in the boxes are missing. It seems to be everywhere, even in the administration.
Anybody have a clue?
-
- Posted 1 year ago #
I just found the code making the "error".
/bb-includes/class.bb-locale.php : Line 445
$num = number_format( $number, $decimals, $bb_locale->number_format['decimal_point'], $bb_locale->number_format['thousands_sep'] );
I can also tell, that the server is up to date, running the latest PHP 5 etc.
-
- Posted 1 year ago #
$decimals = ( is_null( $decimals ) ) ? $bb_locale->number_format['decimals'] : intval( $decimals );This line (443) in the same file (/bb-includes/class.bb-locale.php), it returns a comma (,) when $decimals isn't a number, which isn't correct according to the PHP manual.
Why are we setting it to $bb_locale->number_format['decimals'] and not 0 when $decimals aren't set?
-
You must log in to post.