From 3d967f9f2ccd372f8f8fb1968d20a3226b264b86 Mon Sep 17 00:00:00 2001 From: ruan <2369127-ruany@users.noreply.gitlab.com> Date: Sat, 8 Aug 2020 13:05:37 +0200 Subject: [PATCH] Remove lc_first function since PHP 5.2 is no longer supported --- history.php | 2 +- inc/page.php | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/history.php b/history.php index f641889..d74b46f 100644 --- a/history.php +++ b/history.php @@ -105,7 +105,7 @@ if (isset($_GET['from'])) { $info = $page->type_info($_GET['from']); if ($info['type'] !== null) { $from_title = $info['title']; - $from = Page::lc_first($from_title); + $from = lcfirst($from_title); $from_href = $page->link($info['page']); } } diff --git a/inc/page.php b/inc/page.php index 743d153..3d1cd91 100644 --- a/inc/page.php +++ b/inc/page.php @@ -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 * @return string