Шаблон по умолчанию
This commit is contained in:
parent
b60398acd7
commit
df08cfaa60
1 changed files with 2 additions and 1 deletions
|
|
@ -86,7 +86,8 @@ class Controller_Component
|
|||
}
|
||||
|
||||
public function getTemplateName($_registry/*: Settings*/) {
|
||||
return (isset($_COOKIE['with_template']) && preg_match('/^[\w\d-]{3,20}$/', $_COOKIE['with_template'])) ? $_COOKIE['with_template'] : $_registry->readKey(array('system', 'template'));
|
||||
return (isset($_COOKIE['with_template']) && preg_match('/^[\w\d-]{3,20}$/', $_COOKIE['with_template']))
|
||||
? $_COOKIE['with_template'] : ($_registry ? $_registry->readKey(array('system', 'template')) : 'modern');
|
||||
}
|
||||
|
||||
public function getView($name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue