kopia lustrzana https://github.com/friendica/friendica
Merge pull request #1893 from annando/1509-lockpath
Avoiding errors when checking for the lockpathpull/1897/head
commit
0a41a8127b
6
boot.php
6
boot.php
|
@ -1811,7 +1811,11 @@ function get_lockpath() {
|
|||
|
||||
if ($temppath != "") {
|
||||
$lockpath = $temppath."/lock";
|
||||
mkdir($lockpath);
|
||||
|
||||
if (!is_dir($lockpath))
|
||||
mkdir($lockpath);
|
||||
elseif (!is_writable($lockpath))
|
||||
$lockpath = $temppath;
|
||||
|
||||
if (is_dir($lockpath) AND is_writable($lockpath)) {
|
||||
set_config("system", "lockpath", $lockpath);
|
||||
|
|
Ładowanie…
Reference in New Issue