Skip to content

Commit

Permalink
fixed userpanel lms setup templates
Browse files Browse the repository at this point in the history
  • Loading branch information
chilek committed Feb 16, 2016
1 parent 70011d1 commit bbd64ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions userpanel/lib/LMS.setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,17 @@
{
if ($function=='setup') {
$layout['info'] = trans('This module does not have any configuration settings');
$SMARTY->display(ConfigHelper::getConfig('directories.userpanel_dir').'/templates/setup_error.html');
$SMARTY->display('file:' . ConfigHelper::getConfig('directories.userpanel_dir').'/templates/setup_error.html');
} else {
$layout['error'] = trans('Function <b>$a</b> in module <b>$b</b> not found!', $function, $module);
$SMARTY->display(ConfigHelper::getConfig('directories.userpanel_dir').'/templates/setup_error.html');
$SMARTY->display('file:' . ConfigHelper::getConfig('directories.userpanel_dir').'/templates/setup_error.html');
}
}
}
else
{
$layout['error'] = trans('Userpanel module <b>$a</b> not found!', $module);
$SMARTY->display(ConfigHelper::getConfig('directories.userpanel_dir').'/templates/setup_error.html');
$SMARTY->display('file:' . ConfigHelper::getConfig('directories.userpanel_dir').'/templates/setup_error.html');
}

?>
4 changes: 2 additions & 2 deletions userpanel/lib/setup_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function module_setup()
$enabled_modules = explode(',', $enabled_modules);
$SMARTY->assign('enabled_modules', $enabled_modules);
$SMARTY->assign('total', sizeof($USERPANEL->MODULES));
$SMARTY->display(USERPANEL_DIR . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR . 'setup.html');
$SMARTY->display('file:' . USERPANEL_DIR . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR . 'setup.html');
}

function module_submit_setup()
Expand Down Expand Up @@ -134,7 +134,7 @@ function module_rights()

$SMARTY->assign('customerlist',$customerlist);
$SMARTY->assign('userpanelrights', $userpanelrights);
$SMARTY->display(USERPANEL_DIR . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR . 'setup_rights.html');
$SMARTY->display('file:' . USERPANEL_DIR . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR . 'setup_rights.html');
}

function module_submit_rights()
Expand Down

0 comments on commit bbd64ba

Please sign in to comment.