Bug fixed, set a homepage and enable the filter /blog/

This commit is contained in:
Diego Najar 2020-03-25 21:25:00 +01:00
parent 8171cf23b7
commit 63ccd77af5
1 changed files with 8 additions and 2 deletions

View File

@ -575,7 +575,9 @@ function editSettings($args) {
if (empty($args['homepage'])) { if (empty($args['homepage'])) {
$args['homepage'] = ''; $args['homepage'] = '';
$args['uriBlog'] = '';
} }
if (empty($args['pageNotFound'])) { if (empty($args['pageNotFound'])) {
$args['pageNotFound'] = ''; $args['pageNotFound'] = '';
} }
@ -592,11 +594,15 @@ function editSettings($args) {
$args['uriCategory'] = Text::addSlashes($args['uriCategory']); $args['uriCategory'] = Text::addSlashes($args['uriCategory']);
} }
if (isset($args['uriBlog'])) { if (!empty($args['uriBlog'])) {
$args['uriBlog'] = Text::addSlashes($args['uriBlog']); $args['uriBlog'] = Text::addSlashes($args['uriBlog']);
} else {
if (!empty($args['homepage']) && empty($args['uriBlog'])) {
$args['uriBlog'] = '/blog/';
} else { } else {
$args['uriBlog'] = ''; $args['uriBlog'] = '';
} }
}
if (isset($args['extremeFriendly'])) { if (isset($args['extremeFriendly'])) {
$args['extremeFriendly'] = (($args['extremeFriendly']=='true')?true:false); $args['extremeFriendly'] = (($args['extremeFriendly']=='true')?true:false);