]> git.mxchange.org Git - hub.git/commitdiff
Removed deprecated code (see last commit why)
authorRoland Häder <roland@mxchange.org>
Wed, 20 Apr 2011 05:43:27 +0000 (05:43 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 20 Apr 2011 05:43:27 +0000 (05:43 +0000)
application/hub/main/discovery/package/class_PackageRecipientDiscovery.php

index bf591a84820f029c3dffb9e7cb987e3928c0ce88..5e504daa09fc10af0e830b78451025831674e1c9 100644 (file)
@@ -80,18 +80,8 @@ class PackageRecipientDiscovery extends BaseHubDiscovery implements Discoverable
                                        $ip = ConsoleTools::determineExternalIp();
                                }
 
-                               // Get mode
-                               $mode = Registry::getRegistry()->getInstance('app')->getRequestInstance()->getRequestElement('mode');
-
-                               // Set prefix
-                               $prefix = '';
-                               if ($mode != 'regular') {
-                                       // Is a special node
-                                       $prefix = $mode . '_';
-                               } // END - if
-
                                // Get port and add it
-                               $ipPort = $ip . ':' . $this->getConfigInstance()->getConfigEntry($prefix . 'node_' . $this->determineProtocolByPackageData($packageData) . '_listen_port');
+                               $ipPort = $ip . ':' . $this->getConfigInstance()->getConfigEntry('node_' . $this->determineProtocolByPackageData($packageData) . '_listen_port');
 
                                // Add it to the list
                                $listInstance->addEntry('ip_port', $ipPort);