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

Commit 6a7188f

Browse files
Hotfix 1.8.2 - reenables / to be set to the homepage
1 parent 5833010 commit 6a7188f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

protected/extensions/cii/ciims.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "Charles R. Portwood II"
66
},
77
"license": "MIT",
8-
"version": "1.8.1",
8+
"version": "1.8.2",
99
"repository": [
1010
"github",
1111
"charlesportwoodii/CiiMS"

protected/extensions/cii/models/CiiModel.php

+5
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ public function verifySlug($slug = '', $title = '')
9595

9696
// Remove all of the extra junk characters that aren't valid urls
9797
$slug = preg_replace("/[^A-Za-z0-9 ]/", "-", $slug);
98+
99+
// Allow the slug to be the root directory for setting the homepage
100+
if ($slug == '-')
101+
$slug = "/";
102+
98103
return strToLower($this->checkSlug($slug));
99104
}
100105

0 commit comments

Comments
 (0)