Better use a wrapper

This commit is contained in:
Michael 2017-07-22 06:43:04 +00:00
commit 79fe249c54
3 changed files with 27 additions and 7 deletions

View file

@ -975,7 +975,7 @@ function admin_page_site_post(App $a) {
set_config('system', 'hide_help', $hide_help);
if ($itemcache != '') {
$itemcache = realpath($itemcache);
$itemcache = App::realpath($itemcache);
}
set_config('system', 'itemcache', $itemcache);
@ -983,13 +983,13 @@ function admin_page_site_post(App $a) {
set_config('system', 'max_comments', $max_comments);
if ($temppath != '') {
$temppath = realpath($temppath);
$temppath = App::realpath($temppath);
}
set_config('system', 'temppath', $temppath);
if ($basepath != '') {
$basepath = realpath($basepath);
$basepath = App::realpath($basepath);
}
set_config('system', 'basepath', $basepath);