]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Lock/Type/SemaphoreLock.php
Merge pull request #11520 from annando/display-polls
[friendica.git] / src / Core / Lock / Type / SemaphoreLock.php
index f68b5546cd2e94c4935081b4e79935000e86a7da..ceed955521e2b22e5690234090491423810a10fc 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -24,7 +24,7 @@ namespace Friendica\Core\Lock\Type;
 use Friendica\Core\Cache\Enum\Duration;
 use Friendica\Core\Lock\Enum\Type;
 use Friendica\Core\Lock\Exception\InvalidLockDriverException;
-use function get_temppath;
+use Friendica\Core\System;
 
 class SemaphoreLock extends AbstractLock
 {
@@ -44,7 +44,7 @@ class SemaphoreLock extends AbstractLock
        {
                $success = true;
 
-               $temp = get_temppath();
+               $temp = System::getTempPath();
 
                $file = $temp . '/' . $key . '.sem';