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:
Sarjuuk
2013-01-20 02:36:13 +01:00
parent 5727295ae2
commit 5724c8285d
6 changed files with 25 additions and 8 deletions

View File

@@ -124,7 +124,7 @@ $lang = array(
'class' => "class",
'classes' => "Classes",
'races' => "Races",
'title' => "Title",
'title' => "title",
'titles' => "Titles",
'eventShort' => "Event",
'event' => "World Event",

View File

@@ -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 ",

View File

@@ -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",

View File

@@ -63,7 +63,7 @@ $lang = array(
'class' => "класс",
'classes' => "Классы",
'races' => "Расы",
'title' => "Звание",
'title' => "звание",
'titles' => "Звания",
'eventShort' => "Игровое событие",
'event' => "Событие",

View File

@@ -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
View 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'}