mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
moved announcements to template-class .. its the same for every single page...
This commit is contained in:
@@ -64,10 +64,6 @@ if ($compareString)
|
||||
}
|
||||
}
|
||||
|
||||
// Announcements
|
||||
$announcements = DB::Aowow()->Select('SELECT * FROM ?_announcements WHERE flags & 0x10 AND (page = "compare" OR page = "*")');
|
||||
foreach ($announcements as $k => $v)
|
||||
$announcements[$k]['text'] = Util::localizedString($v, 'text');
|
||||
|
||||
$page = array(
|
||||
'title' => Lang::$compare['compare'],
|
||||
@@ -89,7 +85,6 @@ $page = array(
|
||||
$smarty->updatePageVars($page);
|
||||
$smarty->assign('data', $pageData);
|
||||
$smarty->assign('lang', array_merge(Lang::$main, Lang::$compare));
|
||||
$smarty->assign('announcements', $announcements);
|
||||
$smarty->assign('mysql', DB::Aowow()->getStatistics());
|
||||
$smarty->display('compare.tpl');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user