Diff
Not logged in

Differences From Artifact [43b7941e46]:

To Artifact [8a167d4bf8]:


239
240
241
242
243
244
245


246

247
248
249
250
251
252
253
239
240
241
242
243
244
245
246
247

248
249
250
251
252
253
254
255







+
+
-
+








cson_value * json_artifact_wiki(int rid){
  if( ! g.perm.RdWiki ){
    json_set_err(FSL_JSON_E_DENIED,
                 "Requires 'j' privileges.");
    return NULL;
  }else{
    char addContent = json_artifact_include_content_flag();
    /* todo: support format=(raw|html|none) like /wiki/get does. */
    return json_get_wiki_page_by_rid(rid, 0);
    return json_get_wiki_page_by_rid(rid, addContent ? -1 : 0);
  }
}

cson_value * json_artifact_file(int rid){
  cson_object * pay = NULL;
  const char *zMime;
  Blob content = empty_blob;