summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2017-03-27 12:53:58 +0200
committerSimon Rettberg2017-03-27 12:53:58 +0200
commit78a7102a43095fcb87b1cc284b572076ba40e25b (patch)
tree0e6082aef836a95dc2bc3606731bff0a537a474c
parentAdd "admin mode" (edit vm) (diff)
downloadvmchooser2-78a7102a43095fcb87b1cc284b572076ba40e25b.tar.gz
vmchooser2-78a7102a43095fcb87b1cc284b572076ba40e25b.tar.xz
vmchooser2-78a7102a43095fcb87b1cc284b572076ba40e25b.zip
Get rid of .php suffix for resource requests
-rw-r--r--src/main.cpp11
1 files changed, 7 insertions, 4 deletions
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 <gtk-2.0/gtk/gtk.h>
+
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();