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

Get addresses plugin working after name space stuff, a=chris

Chris Pollett [2015-07-03 19:Jul:rd]
Get addresses plugin working after name space stuff, a=chris
Filename
controllers/components/CrawlComponent.php
library/indexing_plugins/AddressesPlugin.php
diff --git a/controllers/components/CrawlComponent.php b/controllers/components/CrawlComponent.php
index 85656b686..ac1069ac0 100644
--- a/controllers/components/CrawlComponent.php
+++ b/controllers/components/CrawlComponent.php
@@ -1208,9 +1208,10 @@ class CrawlComponent extends Component implements CrawlConstants
                     $tmp_object = new $plugin_name();
                     $supported_processors = $tmp_object->getProcessors();
                     foreach ($supported_processors as $supported_processor) {
-                        $parent_processor = $processor_name;
+                        $parent_processor = NS_PROCESSORS . $processor_name;
                         do {
-                            if ($supported_processor == $parent_processor) {
+                            if (NS_PROCESSORS .$supported_processor ==
+                                $parent_processor) {
                                 $plugin_object =
                                     $parent->plugin(lcfirst($plugin));
                                 if (method_exists($plugin_name,
diff --git a/library/indexing_plugins/AddressesPlugin.php b/library/indexing_plugins/AddressesPlugin.php
index b464b0b7b..78238481d 100644
--- a/library/indexing_plugins/AddressesPlugin.php
+++ b/library/indexing_plugins/AddressesPlugin.php
@@ -296,6 +296,7 @@ class AddressesPlugin extends IndexingPlugin implements CrawlConstants
      */
     public function pageProcessing($page, $url)
     {
+        L\crawlLog("  Addresses plugin examining page..");
         $substitutions = ['@<script[^>]*?>.*?</script>@si',
             '/\&nbsp\;|\&rdquo\;|\&ldquo\;|\&mdash\;/si',
             '@<style[^>]*?>.*?</style>@si'
ViewGit