src/utils_cgi.c: Fix paths of included JavaScript and CSS files.
authorFlorian Forster <octo@noris.net>
Wed, 22 Sep 2010 14:44:15 +0000 (16:44 +0200)
committerFlorian Forster <octo@noris.net>
Wed, 22 Sep 2010 14:44:15 +0000 (16:44 +0200)
src/utils_cgi.c

index 40768dd..372b4e3 100644 (file)
@@ -687,16 +687,16 @@ int html_print_page (const char *title, /* {{{ */
   printf ("<html>\n"
       "  <head>\n"
       "    <title>%s</title>\n"
-      "    <link rel=\"stylesheet\" type=\"text/css\" href=\"../share/style.css\" />\n"
-      "    <script type=\"text/javascript\" src=\"../share/jquery-1.4.2.min.js\">\n"
+      "    <link rel=\"stylesheet\" type=\"text/css\" href=\"../share/"PACKAGE"/style.css\" />\n"
+      "    <script type=\"text/javascript\" src=\"../share/"PACKAGE"/jquery-1.4.2.min.js\">\n"
       "    </script>\n"
-      "    <script type=\"text/javascript\" src=\"../share/raphael-min.js\">\n"
+      "    <script type=\"text/javascript\" src=\"../share/"PACKAGE"/raphael-min.js\">\n"
       "    </script>\n"
-      "    <script type=\"text/javascript\" src=\"../share/g.raphael-min.js\">\n"
+      "    <script type=\"text/javascript\" src=\"../share/"PACKAGE"/g.raphael-min.js\">\n"
       "    </script>\n"
-      "    <script type=\"text/javascript\" src=\"../share/g.line-min.js\">\n"
+      "    <script type=\"text/javascript\" src=\"../share/"PACKAGE"/g.line-min.js\">\n"
       "    </script>\n"
-      "    <script type=\"text/javascript\" src=\"../share/collection.js\">\n"
+      "    <script type=\"text/javascript\" src=\"../share/"PACKAGE"/collection.js\">\n"
       "    </script>\n"
       "  </head>\n",
       title_html);