fix(search bar): fix brick showing

This commit is contained in:
mrilyew 2025-01-05 18:40:01 +03:00
parent 46b12a7c8e
commit 3f2fbd94f0
3 changed files with 4 additions and 7 deletions

View file

@ -35,13 +35,13 @@ final class UserPresenter extends OpenVKPresenter
$this->template->_template = "User/deactivated.xml"; $this->template->_template = "User/deactivated.xml";
$this->template->user = $user; $this->template->user = $user;
} else if($this->user->identity && $this->user->identity->isBlacklistedBy($user)) { } else if(!is_null($user) && $this->user->identity && $this->user->identity->isBlacklistedBy($user)) {
$this->template->_template = "User/blacklisted.xml"; $this->template->_template = "User/blacklisted.xml";
$this->template->blacklist_status = $user->isBlacklistedBy($this->user->identity); $this->template->blacklist_status = $user->isBlacklistedBy($this->user->identity);
$this->template->ignore_status = $user->isIgnoredBy($this->user->identity); $this->template->ignore_status = $user->isIgnoredBy($this->user->identity);
$this->template->user = $user; $this->template->user = $user;
} else if($user->isBlacklistedBy($this->user->identity)) { } else if(!is_null($user) && $user->isBlacklistedBy($this->user->identity)) {
$this->template->_template = "User/blacklisted_pov.xml"; $this->template->_template = "User/blacklisted_pov.xml";
$this->template->ignore_status = $user->isIgnoredBy($this->user->identity); $this->template->ignore_status = $user->isIgnoredBy($this->user->identity);

View file

@ -45,7 +45,7 @@
{include headIncludes} {include headIncludes}
{/ifset} {/ifset}
</head> </head>
<body> <body data-themepack="{$thisUser->getStyle()}">
<div id="sudo-banner" n:if="isset($thisUser) && $userTainted"> <div id="sudo-banner" n:if="isset($thisUser) && $userTainted">
<p> <p>
{_you_entered_as} <b>{$thisUser->getCanonicalName()}</b>. {_please_rights} {_you_entered_as} <b>{$thisUser->getCanonicalName()}</b>. {_please_rights}
@ -129,7 +129,7 @@
<div class="link"> <div class="link">
<a href="/logout?hash={urlencode($csrfToken)}">{_header_log_out}</a> <a href="/logout?hash={urlencode($csrfToken)}">{_header_log_out}</a>
</div> </div>
<div id="search_box" class='header_divider_stick'> <div class="link header_divider_stick" id="search_box">
<div id="search_box_fr"> <div id="search_box_fr">
<form id='search_form' action="/search" method="get"> <form id='search_form' action="/search" method="get">
<div id='search_and_one_more_wrapper'> <div id='search_and_one_more_wrapper'>

View file

@ -111,9 +111,6 @@ h1 {
display: inline-block; display: inline-block;
height: 29px; height: 29px;
padding: 11px 4px 0 7px; padding: 11px 4px 0 7px;
}
.header_navigation .link, .header_navigation .header_divider_stick {
background: url('../img/divider.png') no-repeat; background: url('../img/divider.png') no-repeat;
background-size: 1.5px 41px; background-size: 1.5px 41px;
} }