Allow capitals in tag slugs.

This commit is contained in:
Aaron committed 2018-02-19 11:55:39 +01:00
1 parent f1408ad2ee
commit 068d1dad3e
1 file changed
+1 -1
+1 -1
View File
@@ -120,7 +120,7 @@ class EditTag extends HTMLController
$data = $form->getData();
// Quick stripping.
$data['slug'] = strtr(strtolower($data['slug']), [' ' => '-', '--' => '-', '&' => 'and', '=>' => '', "'" => "", ":"=> "", '/' => '-', '\\' => '-']);
$data['slug'] = strtr($data['slug'], [' ' => '-', '--' => '-', '&' => 'and', '=>' => '', "'" => "", ":"=> "", '/' => '-', '\\' => '-']);
// Creating a new tag?
if (!$id_tag)