aboutsummaryrefslogtreecommitdiff
path: root/_css/js.php
diff options
context:
space:
mode:
Diffstat (limited to '_css/js.php')
-rw-r--r--_css/js.php20
1 files changed, 1 insertions, 19 deletions
diff --git a/_css/js.php b/_css/js.php
index 8ffb7945e..6eb056426 100644
--- a/_css/js.php
+++ b/_css/js.php
@@ -8,25 +8,8 @@
* @link http://elgg.org/
*/
-/*
-
-require_once(dirname(dirname(__FILE__)) . "/engine/start.php");
-
-$default_css = elgg_view("css");
-
-header("Content-type: text/css", true);
-header('Expires: ' . date('r',time() + 864000), true);
-header("Pragma: public", true);
-header("Cache-Control: public", true);
-header("Content-Length: " . strlen($default_css));
-
-echo $default_css;
-*/
-
-define('externalpage',true);
-
global $viewinput, $override;
-//$override = true;
+
$viewinput['view'] = 'js/' . $_GET['js'];
$viewinput['viewtype'] = $_GET['viewtype'];
@@ -34,6 +17,5 @@ header('Content-type: text/javascript');
header('Expires: ' . date('r',time() + 864000000));
header("Pragma: public");
header("Cache-Control: public");
-// header("Content-Length: " . strlen($return));
require_once(dirname(dirname(__FILE__)) . '/simplecache/view.php'); \ No newline at end of file