elgg_register_js ignores location

hi all,

i am using elgg 2.2.3. and would like to load query.js and query-ui.js in the head Area.

The views.php in vendor/elgg/elgg/engine/lib/ contains the following lines:

elgg_register_js('jquery', elgg_get_simplecache_url('jquery.js'), 'head');
elgg_register_js('jquery-ui', elgg_get_simplecache_url('jquery-ui.js'), 'head'); 

Due to the simple word "head" elgg should place it in the html-head-area. But instead its in the body area before the end body Tag. Is this an elgg Error or am i doing something wrong?

Thanks in advance.


Performance and Scalability

Performance and Scalability

If you've got a need for speed, this group is for you.