summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhorus2022-11-14 23:01:17 +0100
committerhorus2022-11-14 23:01:17 +0100
commitb0564ea6768118a8a16f405d2c55c8e446085423 (patch)
treec834599c2fe9c136e048f1d735ec845b8cb074eb
parent3c4aa25af0cd6f56db85d503ab552d39b81b5c17 (diff)
downloadmoehring-b0564ea6768118a8a16f405d2c55c8e446085423.tar.gz
php 8 support
-rw-r--r--functions.php13
1 files changed, 0 insertions, 13 deletions
diff --git a/functions.php b/functions.php
index 7dc32ed..6e45afa 100644
--- a/functions.php
+++ b/functions.php
@@ -11,19 +11,6 @@ function get_dances(){
return json_decode( file_get_contents( __DIR__ . '/views/things/bpm/dances.json' ), true );
}
-function str_starts_with( $haystack, $needle ) {
- $length = strlen( $needle );
- return substr( $haystack, 0, $length ) === $needle;
-}
-
-function str_ends_with( $haystack, $needle) {
- $len = strlen($needle);
- if ($len == 0) {
- return true;
- }
- return substr($haystack, -$len) === $needle;
-}
-
function get_ghrss_feeds() {
require_once __DIR__ . '/views/things/ghrss/ghrss.db.php';
$result = $db->query("SELECT name FROM language ORDER BY name;");