Skip to content
Permalink
Browse files

Update UrlHelper.php

Fixed bug with missing file inside plugin
  • Loading branch information...
makallio85 committed Oct 9, 2017
1 parent b528f4b commit 75171b94f872f6becd07e1d236dc7089812537bf
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/View/Helper/UrlHelper.php
@@ -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
}
}
}

0 comments on commit 75171b9

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