Skip to content
Permalink
Browse files

Remove dead code and prevent notices.

  • Loading branch information...
markstory committed Sep 17, 2014
1 parent 7a72c8d commit f80916ef177c95346b8d3b1f7a37ae42a907036b
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/Routing/Filter/AssetFilter.php
@@ -80,9 +80,12 @@ protected function _getAssetFile($url) {
$parts = explode('/', $url);
$pluginPart = [];
for ($i = 0; $i < 2; $i++) {
if (!isset($parts[$i])) {
break;
}
$pluginPart[] = Inflector::camelize($parts[$i]);
$plugin = implode('/', $pluginPart);
if ($plugin && Plugin::loaded($plugin)) {
if (Plugin::loaded($plugin)) {
$parts = array_slice($parts, $i + 1);
$fileFragment = implode(DS, $parts);
$pluginWebroot = Plugin::path($plugin) . 'webroot' . DS;

0 comments on commit f80916e

Please sign in to comment.
You can’t perform that action at this time.