Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allowed - in slug creation

  • Loading branch information...
commit 868b00cd3c950b0546ebb41c1be8488a8cb4cae8 1 parent 4649c70
Matthew Xi deepwinter authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  modules/cms/helpers/cms.php
2  modules/cms/helpers/cms.php
View
@@ -21,7 +21,7 @@ public static function createSlug($title=NULL, $forPageId=NULL){
if($title!=NULL){
- $slug = preg_replace('/[^a-z0-9 ]/', '', strtolower($title));
+ $slug = preg_replace('/[^a-z0-9\- ]/', '', strtolower($title));
$slug = str_replace(' ', '-', $slug);
$slug = trim($slug);
$checkSlug = ORM::Factory('page')
Please sign in to comment.
Something went wrong with that request. Please try again.