From f3d40c02ecdf061a21e877e03e6c91d9b6c4b2c9 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Thu, 11 Dec 2008 18:53:54 +0000 Subject: A a script block to the of the page that creates a javascript variable (base_url) such that javascript on the page can find the base url of the site in order to generate ajax callbacks. --- core/helpers/core_block.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'core/helpers/core_block.php') diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php index 45cc2026..d3c61fa8 100644 --- a/core/helpers/core_block.php +++ b/core/helpers/core_block.php @@ -20,7 +20,10 @@ class core_block_Core { public static function head($theme) { - return ''; + $url = url::base(true); + $head[] = ""; + $head[] = ''; + return implode("\n", $head); } public static function page_bottom($theme) { -- cgit v1.2.3