Commit 21b81a5c authored by Nigel McNie's avatar Nigel McNie

Moved the smarty library to htdocs/lib/smarty/libs. Put Mahara custom plugins...

Moved the smarty library to htdocs/lib/smarty/libs. Put Mahara custom plugins for smarty in htdocs/lib/smarty/mahara.

This is to aid packaging - we can now depend on the packaged version of smarty instead of having to use our one.
parent ddd1f944
......@@ -29,7 +29,7 @@ defined('INTERNAL') || die();
function &smarty_core() {
require_once(get_config('libroot') . 'smarty/Smarty.class.php');
require_once('smarty/libs/Smarty.class.php');
$smarty =& new Smarty();
$theme = theme_setup();
......@@ -37,8 +37,9 @@ function &smarty_core() {
$smarty->template_dir = $theme->template_dir;
$smarty->compile_dir = get_config('dataroot').'smarty/compile';
$smarty->cache_dir = get_config('dataroot').'smarty/cache';
$smarty->compile_dir = get_config('dataroot') . 'smarty/compile';
$smarty->cache_dir = get_config('dataroot') . 'smarty/cache';
$smarty->plugins_dir[] = get_config('libroot') . 'smarty/mahara/';
$smarty->assign('THEMEURL', get_config('themeurl'));
$smarty->assign('WWWROOT', get_config('wwwroot'));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment