@@ 1338-1350 (lines=13) @@ | ||
1335 | file_put_contents($path, $contents); |
|
1336 | } |
|
1337 | ||
1338 | public function disableMaintenanceLock() |
|
1339 | { |
|
1340 | if (!$this->config()->get('lock_file_enabled')) { |
|
1341 | return; |
|
1342 | } |
|
1343 | ||
1344 | $path = $this->lockFilePath(); |
|
1345 | if (!file_exists($path)) { |
|
1346 | return; |
|
1347 | } |
|
1348 | ||
1349 | unlink($path); |
|
1350 | } |
|
1351 | ||
1352 | /** |
|
1353 | * @return bool |
|
@@ 1355-1364 (lines=10) @@ | ||
1352 | /** |
|
1353 | * @return bool |
|
1354 | */ |
|
1355 | public function isMaintenanceLockActive() |
|
1356 | { |
|
1357 | if (!$this->config()->get('lock_file_enabled')) { |
|
1358 | return false; |
|
1359 | } |
|
1360 | ||
1361 | $path = $this->lockFilePath(); |
|
1362 | ||
1363 | return file_exists($path); |
|
1364 | } |
|
1365 | ||
1366 | /** |
|
1367 | * @return string |