Change how the urls are built in the java script

This commit is contained in:
Tim Almdal
2009-03-05 01:22:27 +00:00
parent 1fa05f1093
commit 46b752cbc7
4 changed files with 8 additions and 8 deletions

View File

@@ -23,7 +23,7 @@ class server_add_theme_Core {
if (Router::$current_uri == "admin/server_add") {
$head[] = "<link media=\"screen, projection\" rel=\"stylesheet\" type=\"text/css\" href=\"" .
url::file("lib/jquery.autocomplete.css") . "\" />";
$base = url::base(true);
$base = url::site("__ARGS__");
$csrf = access::csrf_token();
$head[] = "<script> var base_url = \"$base\"; var csrf = \"$csrf\";</script>";