Merge branch 'master' into pico-1.1
Conflicts: lib/Pico.php
This commit is contained in:
commit
3e88c58ce0
@ -3,7 +3,7 @@ Pico
|
|||||||
|
|
||||||
[](https://github.com/picocms/Pico/blob/master/LICENSE.md)
|
[](https://github.com/picocms/Pico/blob/master/LICENSE.md)
|
||||||
[](https://github.com/picocms/Pico/releases/latest)
|
[](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)
|
[](https://webchat.freenode.net/?channels=%23picocms)
|
||||||
|
|
||||||
Pico is a stupidly simple, blazing fast, flat file CMS.
|
Pico is a stupidly simple, blazing fast, flat file CMS.
|
||||||
|
@ -1830,7 +1830,14 @@ class Pico
|
|||||||
return $urlRewritingEnabled;
|
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'];
|
return $this->config['rewrite_url'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user