viewgit/inc/functions.php:22 Function utf8_encode() is deprecated [8192]

fix namespace issues related to MediaUpdater.php, a=chris

Chris Pollett [2015-07-01 22:Jul:st]
fix namespace issues related to MediaUpdater.php, a=chris
Filename
controllers/CrawlController.php
executables/MediaUpdater.php
diff --git a/controllers/CrawlController.php b/controllers/CrawlController.php
index 150c9ddb4..283746767 100644
--- a/controllers/CrawlController.php
+++ b/controllers/CrawlController.php
@@ -370,7 +370,7 @@ class CrawlController extends Controller implements CrawlConstants,
         $feeds = [];
         foreach ($pre_feeds as $pre_feed) {
             if (!isset($pre_feed['NAME'])) {continue; }
-            $hash_int = unpack("N", crawlHash($pre_feed['NAME']));
+            $hash_int = unpack("N", L\crawlHash($pre_feed['NAME']));
             if (!isset($hash_int[1])) {continue; }
             $hash_index = ($hash_int[1]) % $num_machines;
             if ($machine_index_match != $hash_index) {continue; }
diff --git a/executables/MediaUpdater.php b/executables/MediaUpdater.php
index 57b551366..8c21fc88c 100644
--- a/executables/MediaUpdater.php
+++ b/executables/MediaUpdater.php
@@ -33,6 +33,7 @@ namespace seekquarry\yioop\executables;
 use seekquarry\yioop\library as L;
 use seekquarry\yioop\library\CrawlConstants;
 use seekquarry\yioop\library\CrawlDaemon;
+use seekquarry\yioop\library\FetchUrl;
 use seekquarry\yioop\library\MailServer;
 use seekquarry\yioop\library\MediaConstants;
 use seekquarry\yioop\library\UrlParser;
ViewGit