Revision 2098
Added by darkviper almost 11 years ago
class.admin.php | ||
---|---|---|
55 | 55 |
public function __construct($section_name= '##skip##', $section_permission = 'start', $auto_header = true, $auto_auth = true) |
56 | 56 |
{ |
57 | 57 |
parent::__construct(SecureForm::BACKEND); |
58 |
$this->_oTrans->enableAddon('templates\\'.$this->_oReg->DefaultTheme); |
|
58 | 59 |
if( $section_name != '##skip##' ) |
59 | 60 |
{ |
60 |
global $database; |
|
61 | 61 |
// Specify the current applications name |
62 | 62 |
$this->section_name = $section_name; |
63 | 63 |
$this->section_permission = $section_permission; |
... | ... | |
145 | 145 |
$header_template = new Template(dirname($this->correct_theme_source('header.htt')) ); |
146 | 146 |
$header_template->set_file('page', 'header.htt'); |
147 | 147 |
$header_template->set_block('page', 'header_block', 'header'); |
148 |
$this->_oTrans->enableAddon('templates\\'.$this->_oReg->DefaultTheme); |
|
149 | 148 |
$header_template->set_var($this->_oTrans->getLangArray()); |
150 | 149 |
if(defined('DEFAULT_CHARSET')) { |
151 | 150 |
$charset=DEFAULT_CHARSET; |
... | ... | |
299 | 298 |
$footer_template = new Template(dirname($this->correct_theme_source('footer.htt'))); |
300 | 299 |
$footer_template->set_file('page', 'footer.htt'); |
301 | 300 |
$footer_template->set_block('page', 'footer_block', 'header'); |
302 |
$this->_oTrans->enableAddon('templates\\'.$this->_oReg->DefaultTheme); |
|
303 | 301 |
$footer_template->set_var($this->_oTrans->getLangArray()); |
304 | 302 |
$footer_template->set_var(array( |
305 | 303 |
'BACKEND_BODY_MODULE_JS' => $this->register_backend_modfiles_body('js'), |
Also available in: Unified diff
! activate class Translate for all addons in admin/ (except pages/)
! class.admin >> add translation of the current theme to Translate