Skip to content

Commit

Permalink
Merge git://github.com/Izikd/minify-cakephp
Browse files Browse the repository at this point in the history
  • Loading branch information
prgTW committed Aug 21, 2012
2 parents 247ff04 + cada0ee commit 0524ffd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Controller/MinifyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ public function index($type) {
$plugin = $first;
}

$pluginPath = (!empty($plugin) ? '..' . DS . 'Plugin' . DS . $plugin . DS . WEBROOT_DIR . DS : '');
$file = $pluginPath . $type . DS . $file . '.' . $type;
$pluginPath = (!empty($plugin) ? '../Plugin/' . $plugin . '/' . WEBROOT_DIR . '/' : '');
$file = $pluginPath . $type . '/' . $file . '.' . $type;
$newFiles[] = $file;

if (!empty($plugin) && !isset($plugins[$plugin])) {
$plugins[$plugin] = true;

$pluginSymlinks['/' . $this->request->base . '/' . Inflector::underscore($plugin)] = APP . 'Plugin' . DS . $plugin . DS . WEBROOT_DIR;
$pluginSymlinks['/' . $this->request->base . '/' . Inflector::underscore($plugin)] = APP . 'Plugin/' . $plugin . '/' . WEBROOT_DIR;
}
}
$_GET['f'] = implode(',', $newFiles);
Expand All @@ -51,7 +51,7 @@ public function index($type) {
App::import('Vendor', 'Minify.minify/index');

$this->response->statusCode('304');
exit();
exit;
}

}

0 comments on commit 0524ffd

Please sign in to comment.