aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/elgglib.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index f4e487426..8bbdf8758 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -2163,7 +2163,8 @@ function _elgg_shutdown_hook() {
*/
function js_page_handler($page) {
if (is_array($page) && sizeof($page)) {
- $js = substr($page[0], 0, strpos($page[0], '.'));
+ $js = implode('/', $page);
+ $js = substr($js, 0, strpos($js, '.'));
$return = elgg_view('js/' . $js);
header('Content-type: text/javascript');