mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
properly localize "not found"-pages
This commit is contained in:
@@ -363,6 +363,8 @@ class GenericPage
|
||||
|
||||
public function notFound($title, $msg = '') // unknown entry
|
||||
{
|
||||
array_unshift($this->title, Lang::main('nfPageTitle'));
|
||||
|
||||
$this->notFound = array(
|
||||
'title' => $this->typeId ? Util::ucFirst($title).' #'.$this->typeId : $title,
|
||||
'msg' => !$msg && $this->typeId ? sprintf(Lang::main('pageNotFound'), $title) : $msg
|
||||
|
||||
Reference in New Issue
Block a user