HOR-878
HOR-878
This commit is contained in:
@@ -348,12 +348,18 @@ class Bootstrap
|
|||||||
throw new Exception("Template: $template, doesn't exist!");
|
throw new Exception("Template: $template, doesn't exist!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
|
||||||
$smarty = new Smarty ();
|
$smarty = new Smarty ();
|
||||||
$smarty->compile_dir = Bootstrap::sys_get_temp_dir();
|
$smarty->compile_dir = Bootstrap::sys_get_temp_dir();
|
||||||
$smarty->cache_dir = Bootstrap::sys_get_temp_dir();
|
$smarty->cache_dir = Bootstrap::sys_get_temp_dir();
|
||||||
$smarty->config_dir = PATH_THIRDPARTY . 'smarty/configs';
|
$configDir = PATH_THIRDPARTY . 'smarty/configs';
|
||||||
|
$configDir = $filter->validateInput($configDir, 'path');
|
||||||
$smarty->template_dir = PATH_TEMPLATE;
|
$smarty->config_dir = $configDir;
|
||||||
|
$templateDir = PATH_TEMPLATE;
|
||||||
|
$templateDir = $filter->validateInput($templateDir, 'path');
|
||||||
|
$smarty->template_dir = $templateDir;
|
||||||
$smarty->force_compile = true;
|
$smarty->force_compile = true;
|
||||||
|
|
||||||
foreach ($data as $key => $value) {
|
foreach ($data as $key => $value) {
|
||||||
@@ -371,7 +377,7 @@ class Bootstrap
|
|||||||
* @param string $strClass
|
* @param string $strClass
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function LoadSystem($strClass)
|
public static function LoadSystem($strClass)
|
||||||
{
|
{
|
||||||
require_once (PATH_GULLIVER . 'class.' . $strClass . '.php');
|
require_once (PATH_GULLIVER . 'class.' . $strClass . '.php');
|
||||||
}
|
}
|
||||||
@@ -669,7 +675,7 @@ class Bootstrap
|
|||||||
*/
|
*/
|
||||||
public static function LoadClass($strClass)
|
public static function LoadClass($strClass)
|
||||||
{
|
{
|
||||||
Bootstrap::LoadSystem('inputfilter');
|
self::LoadSystem('inputfilter');
|
||||||
$filter = new InputFilter();
|
$filter = new InputFilter();
|
||||||
|
|
||||||
$path = PATH_GULLIVER . 'class.' . $strClass . '.php';
|
$path = PATH_GULLIVER . 'class.' . $strClass . '.php';
|
||||||
|
|||||||
Reference in New Issue
Block a user