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'])) {
$args['homepage'] = '';
$args['uriBlog'] = '';
}
if (empty($args['pageNotFound'])) {
$args['pageNotFound'] = '';
}
@ -592,10 +594,14 @@ function editSettings($args) {
$args['uriCategory'] = Text::addSlashes($args['uriCategory']);
}
if (isset($args['uriBlog'])) {
if (!empty($args['uriBlog'])) {
$args['uriBlog'] = Text::addSlashes($args['uriBlog']);
} else {
$args['uriBlog'] = '';
if (!empty($args['homepage']) && empty($args['uriBlog'])) {
$args['uriBlog'] = '/blog/';
} else {
$args['uriBlog'] = '';
}
}
if (isset($args['extremeFriendly'])) {