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