Merge branch 'master' into pico-1.1
Conflicts: lib/Pico.php
This commit is contained in:
commit
3e88c58ce0
2 changed files with 9 additions and 2 deletions
|
@ -3,7 +3,7 @@ Pico
|
|||
|
||||
[](https://github.com/picocms/Pico/blob/master/LICENSE.md)
|
||||
[](https://github.com/picocms/Pico/releases/latest)
|
||||
[](https://travis-ci.org/picocms/Pico)
|
||||
[](https://travis-ci.org/picocms/Pico)
|
||||
[](https://webchat.freenode.net/?channels=%23picocms)
|
||||
|
||||
Pico is a stupidly simple, blazing fast, flat file CMS.
|
||||
|
|
|
@ -1830,7 +1830,14 @@ class Pico
|
|||
return $urlRewritingEnabled;
|
||||
}
|
||||
|
||||
$this->config['rewrite_url'] = (isset($_SERVER['PICO_URL_REWRITING']) && $_SERVER['PICO_URL_REWRITING']);
|
||||
if (isset($_SERVER['PICO_URL_REWRITING'])) {
|
||||
$this->config['rewrite_url'] = (bool) $_SERVER['PICO_URL_REWRITING'];
|
||||
} elseif (isset($_SERVER['REDIRECT_PICO_URL_REWRITING'])) {
|
||||
$this->config['rewrite_url'] = (bool) $_SERVER['REDIRECT_PICO_URL_REWRITING'];
|
||||
} else {
|
||||
$this->config['rewrite_url'] = false;
|
||||
}
|
||||
|
||||
return $this->config['rewrite_url'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue