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",
|
'class' => "class",
|
||||||
'classes' => "Classes",
|
'classes' => "Classes",
|
||||||
'races' => "Races",
|
'races' => "Races",
|
||||||
'title' => "Title",
|
'title' => "title",
|
||||||
'titles' => "Titles",
|
'titles' => "Titles",
|
||||||
'eventShort' => "Event",
|
'eventShort' => "Event",
|
||||||
'event' => "World Event",
|
'event' => "World Event",
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ $lang = array(
|
|||||||
'class' => "clase",
|
'class' => "clase",
|
||||||
'classes' => "Clases",
|
'classes' => "Clases",
|
||||||
'races' => "Razas",
|
'races' => "Razas",
|
||||||
'title' => "Título",
|
'title' => "título",
|
||||||
'titles' => "Títulos",
|
'titles' => "Títulos",
|
||||||
'eventShort' => "Evento",
|
'eventShort' => "Evento",
|
||||||
'event' => "Suceso mundial ",
|
'event' => "Suceso mundial ",
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ $lang = array(
|
|||||||
'class' => "classe",
|
'class' => "classe",
|
||||||
'classes' => "Classes",
|
'classes' => "Classes",
|
||||||
'races' => "Races",
|
'races' => "Races",
|
||||||
'title' => "Titre",
|
'title' => "titre",
|
||||||
'titles' => "Titres",
|
'titles' => "Titres",
|
||||||
'eventShort' => "Évènement",
|
'eventShort' => "Évènement",
|
||||||
'event' => "Évènement mondial",
|
'event' => "Évènement mondial",
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ $lang = array(
|
|||||||
'class' => "класс",
|
'class' => "класс",
|
||||||
'classes' => "Классы",
|
'classes' => "Классы",
|
||||||
'races' => "Расы",
|
'races' => "Расы",
|
||||||
'title' => "Звание",
|
'title' => "звание",
|
||||||
'titles' => "Звания",
|
'titles' => "Звания",
|
||||||
'eventShort' => "Игровое событие",
|
'eventShort' => "Игровое событие",
|
||||||
'event' => "Событие",
|
'event' => "Событие",
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ require_once('includes/class.community.php');
|
|||||||
|
|
||||||
$Id = intVal($pageParam);
|
$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))
|
if (!$smarty->loadCache($cacheKeyPage, $pageData))
|
||||||
{
|
{
|
||||||
@@ -88,9 +88,9 @@ if (!$smarty->loadCache($cacheKeyPage, $pageData))
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$smarty->updatePageVars(array(
|
$smarty->updatePageVars(array(
|
||||||
'subject' => ucfirst(Lang::$main['class']),
|
'subject' => ucfirst(Lang::$game['title']),
|
||||||
'id' => $Id,
|
'id' => $Id,
|
||||||
'notFound' => sprintf(Lang::$main['pageNotFound'], Lang::$main['class']),
|
'notFound' => sprintf(Lang::$main['pageNotFound'], Lang::$game['title']),
|
||||||
));
|
));
|
||||||
$smarty->assign('lang', Lang::$main);
|
$smarty->assign('lang', Lang::$main);
|
||||||
$smarty->display('404.tpl');
|
$smarty->display('404.tpl');
|
||||||
@@ -99,7 +99,7 @@ if (!$smarty->loadCache($cacheKeyPage, $pageData))
|
|||||||
}
|
}
|
||||||
|
|
||||||
$smarty->updatePageVars(array(
|
$smarty->updatePageVars(array(
|
||||||
'title' => $pageData['title']." - ".Lang::$game['title'],
|
'title' => $pageData['title']." - ".ucfirst(Lang::$game['title']),
|
||||||
'path' => "[0, 10, ".$title->template['category']."]",
|
'path' => "[0, 10, ".$title->template['category']."]",
|
||||||
'tab' => 0, // for g_initHeader($tab)
|
'tab' => 0, // for g_initHeader($tab)
|
||||||
'type' => TYPEID_TITLE, // 11:Titles
|
'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