Fixed a bug in pageouter

main
Inga 🏳‍🌈 15 years ago
parent b70b7c5b90
commit f4c3d319d2
  1. 2
      Builder/IISMainHandler/build.txt
  2. 2
      Builder/IISUploadHandler/build.txt
  3. 5
      IISMainHandler/PageOuter.cs

@ -71,7 +71,8 @@ namespace FLocal.IISHandler {
pages.Add(i*this.perPage);
}
{
long totalFloor = this.total - (this.total % this.perPage);
long last = this.total - 1;
long totalFloor = last - (last % this.perPage);
for(long i=0; i<left; i++) {
pages.Add(totalFloor - i*this.perPage);
}
@ -84,7 +85,7 @@ namespace FLocal.IISHandler {
}
pages.Add(this.start);
result.Add(new XElement("pages",
from page in pages where (page >= 0) && (page <= this.total) orderby page select new XElement("page", page)
from page in pages where (page >= 0) && (page < this.total) orderby page select new XElement("page", page)
));
return result;
}

Loading…
Cancel
Save