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

View File

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

View File

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

View File

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

View File

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