Skip to content

Commit

Permalink
Update UrlHelper.php
Browse files Browse the repository at this point in the history
Fixed bug with missing file inside plugin
  • Loading branch information
makallio85 committed Oct 9, 2017
1 parent b528f4b commit 75171b9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/View/Helper/UrlHelper.php
Expand Up @@ -218,9 +218,11 @@ public function assetTimestamp($path)
if (Plugin::loaded($plugin)) {
unset($segments[0]);
$pluginPath = Plugin::path($plugin) . 'webroot' . DIRECTORY_SEPARATOR . implode(DIRECTORY_SEPARATOR, $segments);
//@codingStandardsIgnoreStart
return $path . '?' . @filemtime($pluginPath);
//@codingStandardsIgnoreEnd
if (file_exists($pluginPath)) {
//@codingStandardsIgnoreStart
return $path . '?' . @filemtime($pluginPath);
//@codingStandardsIgnoreEnd4
}
}
}

Expand Down

0 comments on commit 75171b9

Please sign in to comment.