Skip to content
This repository has been archived by the owner on Sep 25, 2018. It is now read-only.

Commit

Permalink
Hotfix 1.8.2 - reenables / to be set to the homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesportwoodii committed Oct 17, 2013
1 parent 5833010 commit 6a7188f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion protected/extensions/cii/ciims.json
Expand Up @@ -5,7 +5,7 @@
"name": "Charles R. Portwood II"
},
"license": "MIT",
"version": "1.8.1",
"version": "1.8.2",
"repository": [
"github",
"charlesportwoodii/CiiMS"
Expand Down
5 changes: 5 additions & 0 deletions protected/extensions/cii/models/CiiModel.php
Expand Up @@ -95,6 +95,11 @@ public function verifySlug($slug = '', $title = '')

// Remove all of the extra junk characters that aren't valid urls
$slug = preg_replace("/[^A-Za-z0-9 ]/", "-", $slug);

// Allow the slug to be the root directory for setting the homepage
if ($slug == '-')
$slug = "/";

return strToLower($this->checkSlug($slug));
}

Expand Down

0 comments on commit 6a7188f

Please sign in to comment.