Skip to content
This repository has been archived by the owner on May 25, 2019. It is now read-only.

Commit

Permalink
Merge pull request #4 from ales-zrak/master
Browse files Browse the repository at this point in the history
Deleted unnecessary usage of WWW_DIR from diagnostics panel
  • Loading branch information
akadlec committed Dec 6, 2015
2 parents 992664d + dd2a95b commit 65f7353
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/IPub/AssetsLoader/Diagnostics/Panel.php
Expand Up @@ -78,9 +78,8 @@ public function addFile($source, $id, $type, $lastModified, $memory = NULL)
private function link($file, $type, $timestamp)
{
$link = $this->getPresenter()->link(':IPub:AssetsLoader:assets', ['type' => $type, 'id' => $file, 'timestamp' => $timestamp]);
$name = str_replace(WWW_DIR, '', $file);

return '<a href="'.$link.'" target="_blank">'.$name.'</a>';
return '<a href="'.$link.'" target="_blank">'.$file.'</a>';
}

private function getPresenter()
Expand Down

0 comments on commit 65f7353

Please sign in to comment.