Simplyfying code
This commit is contained in:
parent
0bbe954316
commit
fbac31edc5
|
@ -617,7 +617,7 @@ class App
|
|||
$this->baseURL->redirect('search');
|
||||
}
|
||||
|
||||
// Initialize module that can set the current theme in the init() method, either directly or via App->profile_owner
|
||||
// Initialize module that can set the current theme in the init() method, either directly or via App->setProfileOwner
|
||||
$page['page_title'] = $moduleName;
|
||||
|
||||
if (!$this->mode->isInstall() && !$this->mode->has(App\Mode::MAINTENANCEDISABLED)) {
|
||||
|
|
|
@ -445,7 +445,7 @@ class Contact extends BaseModule
|
|||
|
||||
$_SESSION['return_path'] = DI::args()->getQueryString();
|
||||
|
||||
if (!empty($contact) && is_array($contact)) {
|
||||
if (!empty($contact)) {
|
||||
DI::page()['htmlhead'] .= Renderer::replaceMacros(Renderer::getMarkupTemplate('contact_head.tpl'), [
|
||||
'$baseurl' => DI::baseUrl()->get(true),
|
||||
]);
|
||||
|
|
Loading…
Reference in a new issue