FIx in linux

This commit is contained in:
Antonio de la Rosa 2025-12-27 15:38:11 +01:00
parent 6801687089
commit a02ce657f5

View file

@ -323,5 +323,20 @@ class Linux {
return $password_final;
}
//From https://www.geeksforgeeks.org/php/php-program-to-convert-title-to-url-slug/
static public function simple_slug($str) {
$str=strtolower($str);
$str=preg_replace('/[^a-z0-9]+/', '-', $str);
$str=trim($str, '-');
return $str;
}
}