| 831 | } |
| 832 | |
| 833 | void WebStats::doStatReport(std::string& page, std::string& action) { |
| 834 | playeRecord = NULL; |
| 835 | initReport(); |
| 836 | |
| 837 | if (action.size()) { |
| 838 | action += ".tmpl"; |
| 839 | } |
| 840 | if (!action.size() || !templateSystem.processTemplateFile(page, action.c_str())) { |
| 841 | if (!templateSystem.processTemplateFile(page, "tmpl")) { |
| 842 | templateSystem.processTemplate(page, defaultMainTemplate); |
| 843 | } |
| 844 | } |
| 845 | finishReport(); |
| 846 | } |
| 847 | |
| 848 | void WebStats::doPlayerReport(std::string& page, int playerID) { |
| 849 | playeRecord = bz_getPlayerByIndex(playerID); |
nothing calls this directly
no test coverage detected