mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Use define instead of tpl variable (#726)
* COOKIE_MARK * Use U_INDEX * Removed BB_ROOT * ONLY_NEW_TOPICS, ONLY_NEW_POSTS
This commit is contained in:
parent
af1924e04a
commit
737b7b992b
6 changed files with 7 additions and 12 deletions
|
@ -1118,7 +1118,6 @@ function setup_style()
|
|||
$css_dir = 'styles/' . basename(TEMPLATES_DIR) . '/' . $tpl_dir_name . '/css/';
|
||||
|
||||
$template->assign_vars(array(
|
||||
'BB_ROOT' => BB_ROOT,
|
||||
'SPACER' => make_url('styles/images/spacer.gif'),
|
||||
'STYLESHEET' => make_url($css_dir . $stylesheet),
|
||||
'EXT_LINK_NEW_WIN' => $bb_cfg['ext_link_new_win'],
|
||||
|
@ -1126,7 +1125,7 @@ function setup_style()
|
|||
'SITE_URL' => make_url('/'),
|
||||
));
|
||||
|
||||
require TEMPLATES_DIR . '/' . $tpl_dir_name . '/tpl_config.php';
|
||||
require_once TEMPLATES_DIR . '/' . $tpl_dir_name . '/tpl_config.php';
|
||||
|
||||
return array('template_name' => $tpl_dir_name);
|
||||
}
|
||||
|
|
|
@ -193,12 +193,8 @@ $template->assign_vars(array(
|
|||
|
||||
'AJAX_HTML_DIR' => AJAX_HTML_DIR,
|
||||
|
||||
'ONLY_NEW_POSTS' => ONLY_NEW_POSTS,
|
||||
'ONLY_NEW_TOPICS' => ONLY_NEW_TOPICS,
|
||||
|
||||
// Misc
|
||||
'BOT_UID' => BOT_UID,
|
||||
'COOKIE_MARK' => COOKIE_MARK,
|
||||
'SID' => $userdata['session_id'],
|
||||
'SID_HIDDEN' => '<input type="hidden" name="sid" value="' . $userdata['session_id'] . '" />',
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue