Skip to content

Commit

Permalink
Fix for JS path fix, don't mess with /js/lib/ paths
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed May 26, 2016
1 parent a7c02dc commit f16fbc2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/com_fabrik/helpers/html.php
Original file line number Diff line number Diff line change
Expand Up @@ -1420,9 +1420,12 @@ public static function script($file, $onLoad = '', $minSuffix = '-min.js')
{
if (strpos($file, 'media/com_fabrik/js/') !== false)
{
if (strpos($file, 'media/com_fabrik/js/dist/') === false)
if (strpos($file, 'media/com_fabrik/js/lib/') === false)
{
$file = str_replace('media/com_fabrik/js/', 'media/com_fabrik/js/dist/', $file);
if (strpos($file, 'media/com_fabrik/js/dist/') === false)
{
$file = str_replace('media/com_fabrik/js/', 'media/com_fabrik/js/dist/', $file);
}
}
}
}
Expand Down

0 comments on commit f16fbc2

Please sign in to comment.