Revert "Added system option to enable case insensitive urls. (#1638)"

This reverts commit 481fe1903e.
This commit is contained in:
Andy Miller
2017-11-02 14:48:42 -06:00
parent 6f7938e939
commit fef6bdde5f
2 changed files with 0 additions and 16 deletions

View File

@@ -1154,17 +1154,6 @@ form:
validate:
type: bool
case_insensitive_urls:
type: toggle
label: PLUGIN_ADMIN.CASE_INSENSITIVE_URLS
highlight: 0
help: PLUGIN_ADMIN.CASE_INSENSITIVE_URLS_HELP
options:
1: PLUGIN_ADMIN.YES
0: PLUGIN_ADMIN.NO
validate:
type: bool
param_sep:
type: select
size: medium

View File

@@ -291,11 +291,6 @@ class Uri
$this->url = $this->base . $this->uri;
// if case insensitive urls is enabled, lowercase the url
if( $grav['config']->get('system.case_insensitive_urls') ){
$this->url = strtolower($this->url);
}
// get any params and remove them
$uri = str_replace($this->root, '', $this->url);