* (bug 17031) Correct which characters the parser allows in tag attributes.
* Save 200 useless queries on each category page view
* Shell commands will now work on Linux in filesystems mounted noexec
+* (bug 24804) Corrected commafying in Polish and Ukrainian
=== API changes in 1.17 ===
* (bug 22738) Allow filtering by action type on query=logevent.
}
function commafy( $_ ) {
- if ( !preg_match( '/^\d{1,4}(.\d+)?$/', $_ ) ) {
+ if ( !preg_match( '/^\-?\d{1,4}(\.\d+)?$/', $_ ) ) {
return strrev( (string)preg_replace( '/(\d{3})(?=\d)(?!\d*\.)/', '$1,', strrev( $_ ) ) );
} else {
return $_;
/*
* Ukrainian numeric format is "12 345,67" but "1234,56"
*/
-
function commafy( $_ ) {
- if ( !preg_match( '/^\d{1,4}$/', $_ ) ) {
+ if ( !preg_match( '/^\-?\d{1,4}(\.\d+)?$/', $_ ) ) {
return strrev( (string)preg_replace( '/(\d{3})(?=\d)(?!\d*\.)/', '$1,', strrev( $_ ) ) );
} else {
return $_;