From 211f699aa0c4211e4ee8a02446d51b9811d0c28c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 22 Feb 2021 22:35:27 +0300 Subject: migrate the rest into Config:: --- include/sanity_check.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/sanity_check.php') diff --git a/include/sanity_check.php b/include/sanity_check.php index 5efd23d98..4831209ba 100755 --- a/include/sanity_check.php +++ b/include/sanity_check.php @@ -103,8 +103,8 @@ } } - if (!is_writable(ICONS_DIR)) { - array_push($errors, "ICONS_DIR defined in config.php is not writable (chmod -R 777 ".ICONS_DIR.").\n"); + if (!is_writable(Config::get(Config::ICONS_DIR))) { + array_push($errors, "ICONS_DIR defined in config.php is not writable (chmod -R 777 ".Config::get(Config::ICONS_DIR).").\n"); } if (!is_writable(Config::get(Config::LOCK_DIRECTORY))) { -- cgit v1.2.3-54-g00ecf