aboutsummaryrefslogtreecommitdiff
path: root/mod/minify/start.php
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 21:01:07 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 21:01:07 +0000
commit6ca0fbc6a306640800e1ada8de48342abc360172 (patch)
treed0c27d139f6a35d7eba843c2e4f84140375cbbc3 /mod/minify/start.php
parenta732ea8608eb305d8fa57c08f504666efa748d5c (diff)
downloadelgg-6ca0fbc6a306640800e1ada8de48342abc360172.tar.gz
elgg-6ca0fbc6a306640800e1ada8de48342abc360172.tar.bz2
Doh, how did this get here?
git-svn-id: http://code.elgg.org/elgg/trunk@8172 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/minify/start.php')
-rw-r--r--mod/minify/start.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/mod/minify/start.php b/mod/minify/start.php
deleted file mode 100644
index ed2867a14..000000000
--- a/mod/minify/start.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-function minify_init()
-{
- //make sure this runs after everyone else is done
- register_plugin_hook('display', 'view', 'minify_views', 1000);
-}
-
-function minify_views($hook, $type, $content, $params)
-{
- $view = $params['view'];
-
- if (preg_match("/^js\//", $view)) {
- if (include_once dirname(__FILE__).'/lib/min/lib/JSMin.php') {
- return JSMin::minify($content);
- }
- } elseif ($view === 'css') {
- if (include_once('lib/min/lib/CSS.php')) {
- return Minify_CSS::minify($content);
- }
- }
-}
-
-register_elgg_event_handler('init', 'system', 'minify_init');
-
-?> \ No newline at end of file