* don't use raw input to recreate subcategories for filter urls and external links * if a page does not expect categories it will now error out if it is called with parameters * fixed infite redirect loop that could occur if the pageName was an invalid string * added lost filter string for external page call to NPCs Page
34 lines
710 B
PHP
34 lines
710 B
PHP
<?php
|
|
|
|
namespace Aowow;
|
|
|
|
if (!defined('AOWOW_REVISION'))
|
|
die('illegal access');
|
|
|
|
|
|
class SearchboxBaseResponse extends TemplateResponse
|
|
{
|
|
protected string $template = 'text-page-generic';
|
|
protected string $pageName = 'searchbox';
|
|
protected ?int $activeTab = parent::TAB_MORE;
|
|
protected array $breadcrumb = [2, 16];
|
|
|
|
public function __construct(string $rawParam)
|
|
{
|
|
parent::__construct($rawParam);
|
|
|
|
if ($rawParam)
|
|
$this->generateError();
|
|
}
|
|
|
|
protected function generate() : void
|
|
{
|
|
$this->h1 = Lang::main('moreTitles', $this->pageName);
|
|
|
|
array_unshift($this->title, $this->h1);
|
|
|
|
parent::generate();
|
|
}
|
|
}
|
|
|
|
?>
|