mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
minor changes
- lost error page for invalid Id - typo that cached title.php always to the same file - upperCase / lowerCase issue
This commit is contained in:
@@ -124,7 +124,7 @@ $lang = array(
|
||||
'class' => "class",
|
||||
'classes' => "Classes",
|
||||
'races' => "Races",
|
||||
'title' => "Title",
|
||||
'title' => "title",
|
||||
'titles' => "Titles",
|
||||
'eventShort' => "Event",
|
||||
'event' => "World Event",
|
||||
|
||||
@@ -63,7 +63,7 @@ $lang = array(
|
||||
'class' => "clase",
|
||||
'classes' => "Clases",
|
||||
'races' => "Razas",
|
||||
'title' => "Título",
|
||||
'title' => "título",
|
||||
'titles' => "Títulos",
|
||||
'eventShort' => "Evento",
|
||||
'event' => "Suceso mundial ",
|
||||
|
||||
@@ -63,7 +63,7 @@ $lang = array(
|
||||
'class' => "classe",
|
||||
'classes' => "Classes",
|
||||
'races' => "Races",
|
||||
'title' => "Titre",
|
||||
'title' => "titre",
|
||||
'titles' => "Titres",
|
||||
'eventShort' => "Évènement",
|
||||
'event' => "Évènement mondial",
|
||||
|
||||
@@ -63,7 +63,7 @@ $lang = array(
|
||||
'class' => "класс",
|
||||
'classes' => "Классы",
|
||||
'races' => "Расы",
|
||||
'title' => "Звание",
|
||||
'title' => "звание",
|
||||
'titles' => "Звания",
|
||||
'eventShort' => "Игровое событие",
|
||||
'event' => "Событие",
|
||||
|
||||
@@ -14,7 +14,7 @@ require_once('includes/class.community.php');
|
||||
|
||||
$Id = intVal($pageParam);
|
||||
|
||||
$cacheKeyPage = implode('_', [CACHETYPE_PAGE, TYPEID_TITLE, $id, -1, User::$localeId]);
|
||||
$cacheKeyPage = implode('_', [CACHETYPE_PAGE, TYPEID_TITLE, $Id, -1, User::$localeId]);
|
||||
|
||||
if (!$smarty->loadCache($cacheKeyPage, $pageData))
|
||||
{
|
||||
@@ -88,9 +88,9 @@ if (!$smarty->loadCache($cacheKeyPage, $pageData))
|
||||
else
|
||||
{
|
||||
$smarty->updatePageVars(array(
|
||||
'subject' => ucfirst(Lang::$main['class']),
|
||||
'subject' => ucfirst(Lang::$game['title']),
|
||||
'id' => $Id,
|
||||
'notFound' => sprintf(Lang::$main['pageNotFound'], Lang::$main['class']),
|
||||
'notFound' => sprintf(Lang::$main['pageNotFound'], Lang::$game['title']),
|
||||
));
|
||||
$smarty->assign('lang', Lang::$main);
|
||||
$smarty->display('404.tpl');
|
||||
@@ -99,7 +99,7 @@ if (!$smarty->loadCache($cacheKeyPage, $pageData))
|
||||
}
|
||||
|
||||
$smarty->updatePageVars(array(
|
||||
'title' => $pageData['title']." - ".Lang::$game['title'],
|
||||
'title' => $pageData['title']." - ".ucfirst(Lang::$game['title']),
|
||||
'path' => "[0, 10, ".$title->template['category']."]",
|
||||
'tab' => 0, // for g_initHeader($tab)
|
||||
'type' => TYPEID_TITLE, // 11:Titles
|
||||
|
||||
17
template/404.tpl
Normal file
17
template/404.tpl
Normal file
@@ -0,0 +1,17 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
<div id="main">
|
||||
|
||||
<div id="main-precontents"></div>
|
||||
<div id="main-contents" class="main-contents">
|
||||
|
||||
<div class="pad3"></div>
|
||||
|
||||
<div class="inputbox">
|
||||
<h1>{$page.subject} #{$page.id}</h1>
|
||||
<div id="inputbox-error">{$page.notFound}</div>
|
||||
<!-- -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{include file='footer.tpl'}
|
||||
Reference in New Issue
Block a user