summaryrefslogtreecommitdiff
path: root/src/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/html.c')
-rw-r--r--src/html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/html.c b/src/html.c
index 3caea693..08a94a6b 100644
--- a/src/html.c
+++ b/src/html.c
@@ -43,12 +43,12 @@ dwb_html_load_page(WebKitWebView *wv, HtmlTable *t, char *panel) {
if (path && headpath) {
/* load head */
- g_file_get_contents(path, &filecontent, NULL, NULL);
+ g_file_get_contents(headpath, &filecontent, NULL, NULL);
g_string_append_printf(content, filecontent, t->title);
g_free(filecontent);
FREE(headpath);
/* load content */
- g_file_get_contents(headpath, &filecontent, NULL, NULL);
+ g_file_get_contents(path, &filecontent, NULL, NULL);
if (panel)
g_string_append_printf(content, filecontent, panel);
webkit_web_frame_load_alternate_string(webkit_web_view_get_main_frame(wv), content->str, current_uri, current_uri);