mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-23 05:31:06 +01:00
tplsavant enhancements needed for jinn and japie functionality
This commit is contained in:
parent
174124dd9c
commit
20d7921564
@ -85,12 +85,12 @@
|
||||
@abstract sets the preferred and fallback template search paths
|
||||
@return void
|
||||
*/
|
||||
function set_tpl_path()
|
||||
function set_tpl_path($man_dir=false)
|
||||
{
|
||||
$preferred_dir=$this->get_tpl_dir();
|
||||
$fallback_dir=$this->get_tpl_dir(true);
|
||||
|
||||
if(!$preferred_dir && $fallback_dir)
|
||||
if(!$preferred_dir && $man_dir && $fallback_dir)
|
||||
{
|
||||
$this->halt(lang('No Savant2 template directories were found in:'.EGW_APP_ROOT));
|
||||
}
|
||||
@ -106,6 +106,11 @@
|
||||
$this->addPath('template',$preferred_dir);
|
||||
}
|
||||
|
||||
if($man_dir)
|
||||
{
|
||||
$this->addPath('template',$man_dir);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -209,4 +214,17 @@
|
||||
unlink($tmpfname);
|
||||
}
|
||||
|
||||
/**
|
||||
* set_var the same as assign()
|
||||
*
|
||||
* @param mixed $tplvar
|
||||
* @param string $val
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function set_var($tplvar,$val='')
|
||||
{
|
||||
$this->assign($tplvar,$val);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user