@@ 20-22 (lines=3) @@ | ||
17 | // lock the function |
|
18 | elgg_set_plugin_setting('reindex_running', 1, 'elgg_solr'); |
|
19 | ||
20 | if (!file_exists(elgg_get_config('dataroot') . 'elgg_solr')) { |
|
21 | mkdir(elgg_get_config('dataroot') . 'elgg_solr'); |
|
22 | } |
|
23 | ||
24 | $logtime = elgg_get_config('elgg_solr_restart_logtime'); |
|
25 | if (!$logtime) { |
|
@@ 225-227 (lines=3) @@ | ||
222 | // lock the function |
|
223 | elgg_set_plugin_setting('reindex_running', 1, 'elgg_solr'); |
|
224 | ||
225 | if (!file_exists(elgg_get_config('dataroot') . 'elgg_solr')) { |
|
226 | mkdir(elgg_get_config('dataroot') . 'elgg_solr'); |
|
227 | } |
|
228 | ||
229 | $time = time(); |
|
230 | $log = elgg_get_config('dataroot') . 'elgg_solr/' . $time . '.txt'; |