diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-28 22:03:18 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-28 22:03:18 +0000 |
commit | 71dc8cbf9eecb4de149bc96bb5758b866116b1c8 (patch) | |
tree | ee3d99eb82fe42d0dfaee6d63003ca753001d03b /engine/lib/elgglib.php | |
parent | a1b7808dea79b3a547aa805b86d829fa1f5f19db (diff) | |
download | elgg-71dc8cbf9eecb4de149bc96bb5758b866116b1c8.tar.gz elgg-71dc8cbf9eecb4de149bc96bb5758b866116b1c8.tar.bz2 |
Fixes #2173 #2507 integrated the ie and admin stylesheets into the new simplecache code
git-svn-id: http://code.elgg.org/elgg/trunk@7465 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r-- | engine/lib/elgglib.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 7bf23df5e..ec67f97cf 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -2123,7 +2123,7 @@ function _elgg_shutdown_hook() { */ function js_page_handler($page) { if (is_array($page) && sizeof($page)) { - $js = str_replace('.js', '', $page[0]); + $js = substr($page[0], 0, strpos($page[0], '.')); $return = elgg_view('js/' . $js); header('Content-type: text/javascript'); @@ -2133,7 +2133,6 @@ function js_page_handler($page) { header("Content-Length: " . strlen($return)); echo $return; - exit; } } @@ -2150,9 +2149,10 @@ function js_page_handler($page) { function css_page_handler($page) { if (!isset($page[0])) { // default css + $page[0] = 'elgg'; } - $css = str_replace('.css', '', $page[0]); + $css = substr($page[0], 0, strpos($page[0], '.')); $return = elgg_view("css/$css"); header("Content-type: text/css", true); |