Warning: session_start(): open(/var/lib/php/sessions/sess_5ir15qnq8gghh0d1n4opol2o8d, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static S ai_subst_web(S webID) {
int n = websMadeInThread();
Web web = assertNotNull("Web not found: " + webID, ai_getWeb(webID));
WebRelation rel = assertNotNull(web_findRelationNamed(web, "matches"));
S pat = web_unquoted(rel.a), input = web_unquoted(rel.b);
assertEquals("substitute * => * with *", pat);
new Matches m;
assertTrue(flexMatchIC(pat, input, m));
S src = unquote(m.get(0));
L terms = unquoteAll(trimAll(splitAtJavaToken(m.get(1), ",")));
ai_postTriple_multi(src, "see:", terms);
ret nWebs(websMadeInThread()-n) + " made";
}