diff options
Diffstat (limited to 'application/ApplicationUtils.php')
-rw-r--r-- | application/ApplicationUtils.php | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/application/ApplicationUtils.php b/application/ApplicationUtils.php index ed9abc39..37deb4b3 100644 --- a/application/ApplicationUtils.php +++ b/application/ApplicationUtils.php | |||
@@ -144,20 +144,19 @@ class ApplicationUtils | |||
144 | 'application', | 144 | 'application', |
145 | 'inc', | 145 | 'inc', |
146 | 'plugins', | 146 | 'plugins', |
147 | $conf->get('config.RAINTPL_TPL'), | 147 | $conf->get('path.raintpl_tpl'), |
148 | ) as $path) { | 148 | ) as $path) { |
149 | if (! is_readable(realpath($path))) { | 149 | if (! is_readable(realpath($path))) { |
150 | $errors[] = '"'.$path.'" directory is not readable'; | 150 | $errors[] = '"'.$path.'" directory is not readable'; |
151 | } | 151 | } |
152 | } | 152 | } |
153 | 153 | ||
154 | $datadir = $conf->get('config.DATADIR'); | ||
155 | // Check cache and data directories are readable and writeable | 154 | // Check cache and data directories are readable and writeable |
156 | foreach (array( | 155 | foreach (array( |
157 | $conf->get('config.CACHEDIR'), | 156 | $conf->get('path.thumbnails_cache'), |
158 | $datadir, | 157 | $conf->get('path.data_dir'), |
159 | $conf->get('config.PAGECACHE'), | 158 | $conf->get('path.page_cache'), |
160 | $conf->get('config.RAINTPL_TMP'), | 159 | $conf->get('path.raintpl_tmp'), |
161 | ) as $path) { | 160 | ) as $path) { |
162 | if (! is_readable(realpath($path))) { | 161 | if (! is_readable(realpath($path))) { |
163 | $errors[] = '"'.$path.'" directory is not readable'; | 162 | $errors[] = '"'.$path.'" directory is not readable'; |
@@ -170,10 +169,10 @@ class ApplicationUtils | |||
170 | // Check configuration files are readable and writeable | 169 | // Check configuration files are readable and writeable |
171 | foreach (array( | 170 | foreach (array( |
172 | $conf->getConfigFile(), | 171 | $conf->getConfigFile(), |
173 | $conf->get('config.DATASTORE'), | 172 | $conf->get('path.datastore'), |
174 | $conf->get('config.IPBANS_FILENAME'), | 173 | $conf->get('path.ban_file'), |
175 | $conf->get('config.LOG_FILE'), | 174 | $conf->get('path.log'), |
176 | $conf->get('config.UPDATECHECK_FILENAME'), | 175 | $conf->get('path.update_check'), |
177 | ) as $path) { | 176 | ) as $path) { |
178 | if (! is_file(realpath($path))) { | 177 | if (! is_file(realpath($path))) { |
179 | # the file may not exist yet | 178 | # the file may not exist yet |