Skip to content
Snippets Groups Projects
Commit e4bd7d42 authored by deuce's avatar deuce
Browse files

Add an additional argument to podcast_load_headers() to allow keeping

the result of get_all_msg_headers() in a passed object (should be empty).
parent 2fff4d55
No related branches found
No related tags found
No related merge requests found
...@@ -3,14 +3,20 @@ if (js.global.HTTP == undefined) ...@@ -3,14 +3,20 @@ if (js.global.HTTP == undefined)
if (js.global.MSG_DELETE == undefined) if (js.global.MSG_DELETE == undefined)
js.global.load("sbbsdefs.js"); js.global.load("sbbsdefs.js");
function podcast_load_headers(base, from, to) function podcast_load_headers(base, from, to, all_hdrs)
{ {
var all_hdrs; var all_msg_headers;
var hdrs = []; var hdrs = [];
var i; var i;
var hdr; var hdr;
all_hdrs = base.get_all_msg_headers(); if (all_hdrs == undefined)
all_hdrs = base.get_all_msg_headers();
else {
all_msg_headers = base.get_all_msg_headers();
for (i in all_msg_headers)
all_hdrs[i] = all_msg_headers[i];
}
for (i in all_hdrs) { for (i in all_hdrs) {
hdr = all_hdrs[i]; hdr = all_hdrs[i];
if (hdr == null) if (hdr == null)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment