forked from Public/pics
Allow capitals in tag slugs.
This commit is contained in:
parent
f1408ad2ee
commit
068d1dad3e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user