Added private templates via the __shared directory.
This commit is contained in:
parent
67de8cdf47
commit
5ea7756803
3 changed files with 21 additions and 9 deletions
|
@ -120,7 +120,10 @@ abstract class Display_Common extends Object
|
|||
if ($template != null)
|
||||
{
|
||||
$template_name = $type . '_template';
|
||||
$this->$template_name = SITE_TEMPLATE_PATH . $template . ($this->extension != false ? '.' . $this->extension : '');
|
||||
$template_path = SITE_TEMPLATE_PATH . ($type == 'parent' ? '__shared/' : '');
|
||||
$template_file = $template_path . $template . ($this->extension != false ? '.' . $this->extension : '');
|
||||
|
||||
$this->$template_name = $template_file;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue