From 837ff350fef00f1849b64fa6d0a2b157f044b12f Mon Sep 17 00:00:00 2001 From: ghost Date: Mon, 7 Aug 2023 13:13:32 +0300 Subject: [PATCH] fix paths --- src/crontab/crawler.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/crontab/crawler.php b/src/crontab/crawler.php index 8b71d9b..f4fb23f 100644 --- a/src/crontab/crawler.php +++ b/src/crontab/crawler.php @@ -18,9 +18,8 @@ if (false === sem_acquire($semaphore, true)) { // Load system dependencies require_once(__DIR__ . '/../config/app.php'); -require_once(__DIR__ . '/../library/yggdrasil.php'); require_once(__DIR__ . '/../library/mysql.php'); -require_once __DIR__ . '/../vendor/autoload.php'; +require_once __DIR__ . '/../../vendor/autoload.php'; // Check disk quota if (CRAWL_STOP_DISK_QUOTA_MB_LEFT > disk_free_space('/') / 1000000) { @@ -84,7 +83,7 @@ if ($connectedPeers = Yggverse\Yggdrasilctl\Yggdrasil::getPeers()) { } // Init peer data - if ($connectedPeerRemoteUrl = Yggverse\parser\Url::parse($connectedPeerInfo->remote)) { + if ($connectedPeerRemoteUrl = Yggverse\Parser\Url::parse($connectedPeerInfo->remote)) { if ($dbPeerRemote = $db->findPeerRemote($dbPeerId, $connectedPeerRemoteUrl->host->scheme,