r4184 move require_once to setDevice8021QConfig(), where it is really needed
authorDenis Ovsienko <infrastation@yandex.ru>
Tue, 1 Feb 2011 22:51:22 +0000 (22:51 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 1 Feb 2011 22:51:22 +0000 (22:51 +0000)
inc/gateways.php

index 5185b4e52ff227e9da063776f01ac60e9510af46..80b2ba7927106141e70f69c7a57aa300a942da48 100644 (file)
@@ -340,6 +340,7 @@ function getRunning8021QConfig ($object_id)
 
 function setDevice8021QConfig ($object_id, $pseudocode)
 {
+       require_once 'deviceconfig.php';
        if ('' == $breed = detectDeviceBreed ($object_id))
                throw new RTGatewayError ('device breed unknown');
        global $gwpushxlator;
@@ -383,7 +384,6 @@ function gwRetrieveDeviceConfig ($object_id, $command)
 
 function gwDeployDeviceConfig ($object_id, $breed, $text)
 {
-       require_once 'deviceconfig.php';
        if ($text == '')
                throw new InvalidArgException ('text', '', 'deploy text is empty');
        $objectInfo = spotEntity ('object', $object_id);