From: Christian Weiske Date: Thu, 16 Dec 2010 17:58:46 +0000 (+0100) Subject: fix dummy setup X-Git-Tag: 1.0.0~29 X-Git-Url: https://git.cweiske.de/linksys-wrt3g-tools.git/commitdiff_plain/66bef39ccf96d685da05412da28416e1bac385b2 fix dummy setup --- diff --git a/scripts/linksys-wrt3g.php b/scripts/linksys-wrt3g.php index 824c287..628dfe9 100755 --- a/scripts/linksys-wrt3g.php +++ b/scripts/linksys-wrt3g.php @@ -123,16 +123,16 @@ try { try { $router = new Wrt3g(); + $router->verbosity = $result->options['verbosity']; + $router->host = $result->options['host']; + $router->user = $result->options['user']; + $router->password = $result->options['password']; + if ($result->options['dummy']) { require_once 'Wrt3g/DummyRequest.php'; $router->requestClass = 'Wrt3g_DummyRequest'; $router->log('Using dummy data', 1); - } else { } - $router->verbosity = $result->options['verbosity']; - $router->host = $result->options['host']; - $router->user = $result->options['user']; - $router->password = $result->options['password']; $router->log('Command: ' . $result->command_name, 2);