viewgit/inc/functions.php:22 Function utf8_encode() is deprecated [8192]
Filename | |
---|---|
library/index_bundle_iterators/GroupIterator.php | |
library/index_bundle_iterators/NetworkIterator.php |
diff --git a/library/index_bundle_iterators/GroupIterator.php b/library/index_bundle_iterators/GroupIterator.php index 17beb517e..2bc500a00 100644 --- a/library/index_bundle_iterators/GroupIterator.php +++ b/library/index_bundle_iterators/GroupIterator.php @@ -30,6 +30,7 @@ */ namespace seekquarry\yioop\library\index_bundle_iterators; +use seekquarry\yioop\library as L; use seekquarry\yioop\library\IndexShard; if (!defined('BASE_DIR')) {echo "BAD REQUEST"; exit();} @@ -348,7 +349,8 @@ class GroupIterator extends IndexBundleIterator $add_lookup = false; if ($this->network_flag) { $hash = $out_pages[$hash_url][self::HASH]; - $is_location = (crawlHash($hash_url."LOCATION", true) == $hash); + $is_location = + (L\crawlHash($hash_url."LOCATION", true) == $hash); if (!$out_pages[$hash_url][self::IS_DOC] || $is_location) { $add_lookup = true; } diff --git a/library/index_bundle_iterators/NetworkIterator.php b/library/index_bundle_iterators/NetworkIterator.php index 00e1e1686..5b313964c 100644 --- a/library/index_bundle_iterators/NetworkIterator.php +++ b/library/index_bundle_iterators/NetworkIterator.php @@ -32,6 +32,8 @@ namespace seekquarry\yioop\library\IndexBundleIterators; */ namespace seekquarry\yioop\library\index_bundle_iterators; +use seekquarry\yioop\library as L; +use seekquarry\yioop\library\CrawlConstants; use seekquarry\yioop\library\FetchUrl; use seekquarry\yioop\library\AnalyticsManager; @@ -230,7 +232,7 @@ class NetworkIterator extends IndexBundleIterator $downloads = FetchUrl::getPages($sites, false, 0, null, self::URL, self::PAGE, true); } - $net_times += changeInMicrotime($download_time); + $net_times += L\changeInMicrotime($download_time); AnalyticsManager::set("NET_TIMES", $net_times); $results = []; $count = count($downloads);