Skip to content

Commit

Permalink
fix options.json file path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ahamed committed Jan 29, 2021
1 parent 834ec5d commit d4abbed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/shaper_helixultimate/installer.script.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public function postflight($type, $parent)
}

$template_path = $src . '/template';
$plugin_path = $src . '/plugins/system';

if (JFolder::exists( $template_path ))
{
Expand All @@ -85,7 +86,7 @@ public function postflight($type, $parent)

if(empty($params_array))
{
$options_default = file_get_contents($template_path .'/options.json');
$options_default = file_get_contents($plugin_path .'/assets/options.json');

$db = JFactory::getDBO();
$query = $db->getQuery(true);
Expand Down

0 comments on commit d4abbed

Please sign in to comment.