@@ 47,7 47,7 @@ public void tree(Request id, Response re
array x = (p["name"][sizeof(pr)..]/".");
prefixes += ({x[0]});
}
- prefixes = global.Array.uniq(prefixes);
+// prefixes = Array.uniq(prefixes);
prefixes -= ({"", 0});
foreach(prefixes;;string p)
data += ({ (["title": p, "data": p, "widgetId": "tree_" + p, "isFolder": 1 ]) });
@@ 73,9 73,6 @@ public void tree(Request id, Response re
nodes += ({p});
}
-// prefixes = global.Array.uniq(prefixes);
-
-
if(sizeof(prefixes))
foreach(prefixes;; array p)
data += ({ (["title": p[0], "data": p[1], "widgetId": "tree_" + p[1], "isFolder": 1 ]) });
@@ 114,7 111,7 @@ werror("template: %O\n", t);
foreach(x;;object p)
prefixes += ({ (p["name"][sizeof(pr)..]/".")[0]});
prefixes -= ({"", 0});
- prefixes = global.Array.uniq(prefixes);
+// prefixes = Array.uniq(prefixes);
}
string startswith = id->variables->startswith;
@@ 18,7 18,7 @@ protected mixed `[](mixed a)
//werror("internal_path_handlers=%O\n", app->internal_path_handlers);
mixed v;
- if(v = ::`[](a, 2))
+ if(v = ::`->(a, 2))
{
return v;
}