Commit 5125ba82 authored by Leigh Stoller's avatar Leigh Stoller

Another minor fix for new geni-lib feature checking.

parent f360b627
......@@ -746,6 +746,17 @@ function Do_CheckScript()
$command .= " -N ";
}
}
elseif (isset($ajax_args["pid"]) && $ajax_args["pid"] != "") {
$project = Project::LookupByPid($ajax_args["pid"]);
if (!$project) {
SPITAJAX_ERROR(1, "No such project");
return;
}
if (FeatureEnabled("NewPParams", null,
$project->DefaultGroup(), null)) {
$command .= " -N ";
}
}
}
elseif (preg_match("/^source tb_compat/m", $ajax_args["script"])) {
$command = "webns2rspec";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment