forked from gruposilvercompany/intranet-platform
/
template.php
executable file
·32 lines (29 loc) · 933 Bytes
/
template.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
* @version $Id: template.php 3024 2011-10-09 01:44:30Z johanjanssens $
* @category Nooku
* @package Nooku_Server
* @subpackage Extensions
* @copyright Copyright (C) 2011 - 2012 Timble CVBA and Contributors. (http://www.timble.net).
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
* @link http://www.nooku.org
*/
/**
* Template Controller Class
*
* @author Stian Didriksen <http://nooku.assembla.com/profile/stiandidriksen>
* @category Nooku
* @package Nooku_Server
* @subpackage Extensions
*/
class ComExtensionsControllerTemplate extends ComDefaultControllerDefault
{
protected function _actionRead(KCommandContext $context)
{
$template = parent::_actionRead($context);
if(isset($template->name)) {
JFactory::getLanguage()->load('tpl_'.$template->name, JPATH_ADMINISTRATOR);
}
return $template;
}
}