Remove lc_first function since PHP 5.2 is no longer supported

This commit is contained in:
ruan 2020-08-08 13:05:37 +02:00
parent dc4a25c8cf
commit 3d967f9f2c
2 changed files with 1 additions and 11 deletions

View File

@ -105,7 +105,7 @@ if (isset($_GET['from'])) {
$info = $page->type_info($_GET['from']); $info = $page->type_info($_GET['from']);
if ($info['type'] !== null) { if ($info['type'] !== null) {
$from_title = $info['title']; $from_title = $info['title'];
$from = Page::lc_first($from_title); $from = lcfirst($from_title);
$from_href = $page->link($info['page']); $from_href = $page->link($info['page']);
} }
} }

View File

@ -662,16 +662,6 @@ class Page {
} }
} }
/**
* lcfirst is only supported in PHP >= 5.3
* @param $str
* @return string
*/
static function lc_first($str) {
$str[0] = strtolower($str[0]);
return (string)$str;
}
/** /**
* @param $where * @param $where
* @return string * @return string