зеркало из https://github.com/mozilla/gecko-dev.git
oops was printing the oldest 15 to the rdf file, not the newest
This commit is contained in:
Родитель
db6ac72425
Коммит
9959fbb8c1
|
@ -184,11 +184,12 @@ RDFHEAD
|
|||
print $header;
|
||||
|
||||
my $index = @articles - 1;
|
||||
# only print newest 15 articles
|
||||
my $min = 0;
|
||||
if ($index > 15) {
|
||||
$index = 15;
|
||||
$min = $index - 15;
|
||||
}
|
||||
for (my $i=$index; $i > 0 ; $i--) {
|
||||
#may need to substitute &lt; for < since rdf adds extra layer
|
||||
for (my $i=$index; $i > $min ; $i--) {
|
||||
print (" <item>\n");
|
||||
print (" <title>" . $articles[$i]->{'Subject'} . "</title>\n");
|
||||
print (" <link>http://www.dejanews.com/[LB=http://www.mozilla.org/]/msgid.xp?MID=<" . $articles[$i]->{'Message-ID'} . "></link>\n");
|
||||
|
|
Загрузка…
Ссылка в новой задаче