Skip to content

Commit

Permalink
fixed path not removed in Asset::remove_path()
Browse files Browse the repository at this point in the history
  • Loading branch information
WanWizard committed Mar 14, 2012
1 parent 96674e7 commit aaf2b10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/asset/instance.php
Expand Up @@ -154,7 +154,7 @@ public function remove_path($path, $type = null)
foreach ($type as $key => $folder)
{
is_numeric($key) and $key = $folder;
if (($found = array_search(str_replace('../', '', rtrim($path,'/').$folder.'/'), $this->_asset_paths[$key])) !== false)
if (($found = array_search(str_replace('../', '', rtrim($path,'/').'/'.rtrim($folder, '/').'/'), $this->_asset_paths[$key])) !== false)
{
unset($this->_asset_paths[$key][$found]);
}
Expand Down

0 comments on commit aaf2b10

Please sign in to comment.