summaryrefslogtreecommitdiff
path: root/src/html.c
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2011-06-30 00:44:51 +0200
committerportix <portix@gmx.net>2011-06-30 00:44:51 +0200
commitb064ba38987a2204fda2935ac310eb75e554c863 (patch)
tree2cff0a5e1f2dd01e226b718f9d8df3f0894a8c70 /src/html.c
parent3f0c1d67d0305ddf48575b04b9572e39340cb81b (diff)
downloaddwb-b064ba38987a2204fda2935ac310eb75e554c863.zip
Headpath and path in html.c interchanged
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);