Skip to content

Commit fb8c71a

Browse files
committed
Merge branch '1.4.x' of github.com:evolution-cms/evolution into 1.4.x
2 parents a23c162 + ad90549 commit fb8c71a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

assets/snippets/FormLister/lib/Filters.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,23 @@ public static function stripTags($value) {
4242
* @return string
4343
*/
4444
public static function lcfirst($value) {
45-
return is_scalar($value) ? lcfirst($value) : '';
45+
return is_scalar($value) ? mb_strtolower(mb_substr($value, 0, 1)) . mb_substr($value, 1) : '';
4646
}
4747

4848
/**
4949
* @param $value
5050
* @return string
5151
*/
5252
public static function ucfirst($value) {
53-
return is_scalar($value) ? ucfirst($value) : '';
53+
return is_scalar($value) ? mb_strtoupper(mb_substr($value, 0, 1)) . mb_substr($value, 1) : '';
5454
}
5555

5656
/**
5757
* @param $value
5858
* @return string
5959
*/
6060
public static function ucwords($value) {
61-
return is_scalar($value) ? ucwords($value) : '';
61+
return is_scalar($value) ? mb_convert_case($value, MB_CASE_TITLE, "UTF-8") : '';
6262
}
6363

6464
/**

0 commit comments

Comments
 (0)