getNumNews

Wondering what the parameter for getNumNews ($combi) does? It looks like it should trigger on/off whether you want the function to consider "gallery" news when combinews is turned on? However, there does not seem to be a conditional in the function to check this parameter.

For example, if I have combinews turned on, with no actual "News" articles and use getNumNews(false) it should return 0, right? It does not and returns first page count of gallery items.

Comments

  • acrylian Administrator, Developer
    The parameter is actually indeed useless as the function determines this by itself via the options set. To your question no, it is used for the pagination of the news loop: It either gets the number of news articles per page itself (without combinews mode) or news articles plus gallery items (with combinews mod , depending on the actual combinews mode) per page. I currently don't remember where it actually is used though, maybe it is not at all and a leftover.
Sign In or Register to comment.