2018-01-08 Post
This commit is contained in:
parent
bf70d75ddc
commit
938c240113
2 changed files with 12 additions and 0 deletions
|
@ -48,6 +48,9 @@ class Load extends Action
|
|||
foreach ($args as $aliases => $model) {
|
||||
$attrs = [];
|
||||
foreach (explode('.', $aliases) as $alias) {
|
||||
if (empty($this->aliases[$alias])) {
|
||||
continue;
|
||||
}
|
||||
foreach ($this->aliases[$alias] as $key => $repl) {
|
||||
$name = true === $repl ? $key : $repl;
|
||||
$attrs[$name] = $data[$key];
|
||||
|
|
|
@ -99,6 +99,15 @@ class Model extends DataModel
|
|||
return $this->c->config->o_signatures == '1' && $this->c->user->show_sig == '1';
|
||||
}
|
||||
|
||||
/**
|
||||
* Статус показа количества сообщений
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
protected function getshowPostCount()
|
||||
{
|
||||
return $this->showUserInfo && $this->c->config->o_show_post_count == '1';
|
||||
}
|
||||
|
||||
protected function getcanReport()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue