Update for previous commit
"logical" type in config model.
This commit is contained in:
parent
00ccdd970a
commit
ec98d0eb3b
6 changed files with 8 additions and 8 deletions
|
@ -41,7 +41,7 @@ class Edit extends Page
|
|||
|
||||
$this->c->Lang->load('post');
|
||||
|
||||
if ('1' == $this->c->config->b_poll_enabled) {
|
||||
if (1 === $this->c->config->b_poll_enabled) {
|
||||
$this->c->Lang->load('poll');
|
||||
}
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ class Post extends Page
|
|||
|
||||
$this->c->Lang->load('post');
|
||||
|
||||
if ('1' == $this->c->config->b_poll_enabled) {
|
||||
if (1 === $this->c->config->b_poll_enabled) {
|
||||
$this->c->Lang->load('poll');
|
||||
}
|
||||
|
||||
|
|
|
@ -176,7 +176,7 @@ class Topic extends Page
|
|||
|
||||
if (
|
||||
$topic->poll_type > 0
|
||||
&& '1' == $this->c->config->b_poll_enabled
|
||||
&& 1 === $this->c->config->b_poll_enabled
|
||||
) {
|
||||
$this->c->Lang->load('poll');
|
||||
|
||||
|
|
|
@ -143,7 +143,7 @@ class Model extends DataModel
|
|||
{
|
||||
return (
|
||||
$this->c->user->usePoll
|
||||
|| '1' == $this->c->config->b_poll_guest
|
||||
|| 1 === $this->c->config->b_poll_guest
|
||||
)
|
||||
&& (
|
||||
0 === $this->parent->poll_term
|
||||
|
@ -238,7 +238,7 @@ class Model extends DataModel
|
|||
return null;
|
||||
} elseif (
|
||||
$this->c->user->isGuest
|
||||
&& '1' != $this->c->config->b_poll_guest
|
||||
&& 1 !== $this->c->config->b_poll_guest
|
||||
) {
|
||||
return __('Poll results are hidden from the guests');
|
||||
} elseif (! $this->isOpen) {
|
||||
|
|
|
@ -349,7 +349,7 @@ class Model extends DataModel
|
|||
$this->stick_fp
|
||||
|| (
|
||||
$this->poll_type > 0
|
||||
&& '1' == $this->c->config->b_poll_enabled
|
||||
&& 1 === $this->c->config->b_poll_enabled
|
||||
)
|
||||
)
|
||||
&& ! \in_array($this->first_post_id, $list)
|
||||
|
|
|
@ -383,7 +383,7 @@ class Model extends DataModel
|
|||
*/
|
||||
protected function getusePoll(): bool
|
||||
{
|
||||
return '1' == $this->c->config->b_poll_enabled && ! $this->isGuest;
|
||||
return 1 === $this->c->config->b_poll_enabled && ! $this->isGuest;
|
||||
}
|
||||
|
||||
public function fLog(): string
|
||||
|
@ -396,7 +396,7 @@ class Model extends DataModel
|
|||
*/
|
||||
protected function getusePM(): bool
|
||||
{
|
||||
return '1' == $this->c->config->b_pm
|
||||
return 1 === $this->c->config->b_pm
|
||||
&& (
|
||||
$this->isAdmin
|
||||
|| 1 == $this->g_pm
|
||||
|
|
Loading…
Add table
Reference in a new issue