From 78a7102a43095fcb87b1cc284b572076ba40e25b Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 27 Mar 2017 12:53:58 +0200 Subject: Get rid of .php suffix for resource requests --- src/main.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index 2f1dfab..413239e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -21,7 +21,10 @@ #include "httpxmldownloader.h" #include "choosersettings.h" +#include + int main(int argc, char *argv[]) { + guint64 bla; QApplication a(argc, argv); QTranslator translator; @@ -294,20 +297,20 @@ int main(int argc, char *argv[]) { // read xml and add items later if (cmdOptions.contains("exam-mode")) { - httpxmldownloader.makeRequest(urlBase + "list.php?exams=exam-mode", locationIds); + httpxmldownloader.makeRequest(urlBase + "list?exams=exam-mode", locationIds); } else { - httpxmldownloader.makeRequest(urlBase + "list.php", locationIds); + httpxmldownloader.makeRequest(urlBase + "list", locationIds); } /* DOWNLOAD NEWS */ HttpXmlDownloader news_downloader; news_downloader.connectSlot(&w, SLOT(addNewsAfterDownload(QNetworkReply*))); - news_downloader.makeRequest(urlBase + "news.php"); + news_downloader.makeRequest(urlBase + "news"); /* DOWNLOAD HELP-SECTION */ HttpXmlDownloader help_downloader; help_downloader.connectSlot(&w, SLOT(addHelpAfterDownload(QNetworkReply*))); - help_downloader.makeRequest(urlBase + "help.php"); + help_downloader.makeRequest(urlBase + "help"); w.setTheme(); -- cgit v1.2.3-55-g7522