From bbd64ba29940d7b170de8d657ff552e9dd2b665d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Chili=C5=84ski?= Date: Tue, 16 Feb 2016 12:05:45 +0100 Subject: [PATCH] fixed userpanel lms setup templates --- userpanel/lib/LMS.setup.php | 6 +++--- userpanel/lib/setup_functions.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/userpanel/lib/LMS.setup.php b/userpanel/lib/LMS.setup.php index 46717fa4b4..49ecd9bd31 100644 --- a/userpanel/lib/LMS.setup.php +++ b/userpanel/lib/LMS.setup.php @@ -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 $a in module $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 $a 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'); } ?> diff --git a/userpanel/lib/setup_functions.php b/userpanel/lib/setup_functions.php index 89f3963918..fa285573b0 100644 --- a/userpanel/lib/setup_functions.php +++ b/userpanel/lib/setup_functions.php @@ -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() @@ -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()