Skip to content

Commit

Permalink
vercela
Browse files Browse the repository at this point in the history
  • Loading branch information
eypsilon committed Jan 26, 2023
1 parent 3547c50 commit cee114c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Many\Http\Curler;
use Many\Exception\AppCallbackException;

require_once \dirname(\dirname(__DIR__)) . '/vendor/autoload.php';
require_once \dirname(__DIR__) . '/vendor/autoload.php';
require_once \dirname(__FILE__) . '/callback.functions.php';


Expand Down Expand Up @@ -109,9 +109,9 @@
/**
* @var array Load multiple URLs
*/
foreach($loadUrls as $url) {
foreach($loadUrls as $i => $url) {
try {
$host = \parse_url($url, PHP_URL_HOST);
$host = \parse_url((string) $url, PHP_URL_HOST);
$curled['load_urls'][] = (new Curler)
->htmlChars()
->callback('trim')
Expand Down

0 comments on commit cee114c

Please sign in to comment.