r4254 Move "gateway" directory out of "wwwroot" and provide a mean to reconfigure
[racktables] / wwwroot / inc / gateways.php
index 033144e5d3f52aae271acc244744b45313b481b5..1a7a568f3faa8a0b7f97d5682a2246bdd0c7a288 100644 (file)
@@ -73,7 +73,8 @@ $gwpushxlator = array
 // which explains the reason.
 function queryGateway ($gwname, $questions)
 {
-       $execpath = "./gateways/{$gwname}/main";
+       global $racktables_gwdir;
+       $execpath = "${racktables_gwdir}/gateways/{$gwname}/main";
        $dspec = array
        (
                0 => array ("pipe", "r"),