| 157 | } |
| 158 | |
| 159 | void WebAdmin::fillPageList(std::vector<std::string> &pages) { |
| 160 | std::vector<std::string> templateDirs = templateSystem.getSearchPaths(); |
| 161 | |
| 162 | pages.clear(); |
| 163 | |
| 164 | for (size_t d = 0; d < templateDirs.size(); d++) { |
| 165 | std::vector<std::string> files = getFilesInDir(templateDirs[d], "*.page", false); |
| 166 | |
| 167 | for (size_t f = 0; f < files.size(); f++) { |
| 168 | pages.push_back(getFileTitle(files[f]) + "." + getFileExtension(files[f])); |
| 169 | } |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | void WebAdmin::buildAuthPermsFromPages(void) { |
| 174 | std::vector<std::string> pages; |
nothing calls this directly
no test coverage detected