mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
/me slaps himself for being old school
git-svn-id: file:///svn/phpbb/trunk@8650 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
0ebc5cc9ee
commit
97d2fb55b7
2 changed files with 5 additions and 5 deletions
|
@ -2861,7 +2861,7 @@ parse_css_file = {PARSE_CSS_FILE}
|
||||||
|
|
||||||
function generate_stylesheets($theme)
|
function generate_stylesheets($theme)
|
||||||
{
|
{
|
||||||
global $db, $phpbb_root_path, $config;
|
global $db, $config;
|
||||||
|
|
||||||
// get all the lang_dirs
|
// get all the lang_dirs
|
||||||
$sql = 'SELECT lang_dir
|
$sql = 'SELECT lang_dir
|
||||||
|
@ -2888,7 +2888,7 @@ parse_css_file = {PARSE_CSS_FILE}
|
||||||
$theme['imageset_id'] = $theme_row['imageset_id'];
|
$theme['imageset_id'] = $theme_row['imageset_id'];
|
||||||
$theme['template_path'] = $theme_row['template_path'];
|
$theme['template_path'] = $theme_row['template_path'];
|
||||||
|
|
||||||
$user_image_lang = (file_exists($phpbb_root_path . 'styles/' . $theme['imageset_path'] . '/imageset/' . $lang_dir)) ? $lang_dir : $config['default_lang'];
|
$user_image_lang = (file_exists(PHPBB_ROOT_PATH . 'styles/' . $theme['imageset_path'] . '/imageset/' . $lang_dir)) ? $lang_dir : $config['default_lang'];
|
||||||
|
|
||||||
// Parse Theme Data
|
// Parse Theme Data
|
||||||
$replace = array(
|
$replace = array(
|
||||||
|
@ -2938,7 +2938,7 @@ parse_css_file = {PARSE_CSS_FILE}
|
||||||
$img_data = &$img_array[$img];
|
$img_data = &$img_array[$img];
|
||||||
$imgsrc = ($img_data['image_lang'] ? $img_data['image_lang'] . '/' : '') . $img_data['image_filename'];
|
$imgsrc = ($img_data['image_lang'] ? $img_data['image_lang'] . '/' : '') . $img_data['image_filename'];
|
||||||
$imgs[$img] = array(
|
$imgs[$img] = array(
|
||||||
'src' => $phpbb_root_path . 'styles/' . $theme['imageset_path'] . '/imageset/' . $imgsrc,
|
'src' => './styles/' . $theme['imageset_path'] . '/imageset/' . $imgsrc,
|
||||||
'width' => $img_data['image_width'],
|
'width' => $img_data['image_width'],
|
||||||
'height' => $img_data['image_height'],
|
'height' => $img_data['image_height'],
|
||||||
);
|
);
|
||||||
|
@ -2968,7 +2968,7 @@ parse_css_file = {PARSE_CSS_FILE}
|
||||||
$specific_theme_data = str_replace($find, $replace, $specific_theme_data);
|
$specific_theme_data = str_replace($find, $replace, $specific_theme_data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_put_contents($phpbb_root_path . '/store/' . $theme['theme_id'] . '_' . $theme['imageset_id'] . '_' . $lang_dir . '.css', $specific_theme_data, LOCK_EX);
|
file_put_contents(PHPBB_ROOT_PATH . '/store/' . $theme['theme_id'] . '_' . $theme['imageset_id'] . '_' . $lang_dir . '.css', $specific_theme_data, LOCK_EX);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
|
@ -3416,7 +3416,7 @@ function page_header($page_title = '', $display_online_list = true)
|
||||||
'T_ICONS_PATH' => PHPBB_ROOT_PATH . $config['icons_path'] . '/',
|
'T_ICONS_PATH' => PHPBB_ROOT_PATH . $config['icons_path'] . '/',
|
||||||
'T_RANKS_PATH' => PHPBB_ROOT_PATH . $config['ranks_path'] . '/',
|
'T_RANKS_PATH' => PHPBB_ROOT_PATH . $config['ranks_path'] . '/',
|
||||||
'T_UPLOAD_PATH' => PHPBB_ROOT_PATH . $config['upload_path'] . '/',
|
'T_UPLOAD_PATH' => PHPBB_ROOT_PATH . $config['upload_path'] . '/',
|
||||||
'T_STYLESHEET_LINK' => (!$user->theme['theme_storedb']) ? PHPBB_ROOT_PATH . 'styles/' . $user->theme['theme_path'] . '/theme/stylesheet.css' : PHPBB_ROOT_PATH . 'style.' . PHP_EXT . "?sid=$user->session_id&id=" . $user->theme['style_id'] . '&lang=' . $user->data['user_lang'], //"{$phpbb_root_path}store/{$user->theme['theme_id']}_{$user->theme['imageset_id']}_{$user->lang_name}.css"
|
'T_STYLESHEET_LINK' => (!$user->theme['theme_storedb']) ? PHPBB_ROOT_PATH . 'styles/' . $user->theme['theme_path'] . '/theme/stylesheet.css' : PHPBB_ROOT_PATH . 'style.' . PHP_EXT . "?sid=$user->session_id&id=" . $user->theme['style_id'] . '&lang=' . $user->data['user_lang'], //PHPBB_ROOT_PATH . "store/{$user->theme['theme_id']}_{$user->theme['imageset_id']}_{$user->lang_name}.css"
|
||||||
'T_STYLESHEET_NAME' => $user->theme['theme_name'],
|
'T_STYLESHEET_NAME' => $user->theme['theme_name'],
|
||||||
|
|
||||||
'SITE_LOGO_IMG' => $user->img('site_logo'))
|
'SITE_LOGO_IMG' => $user->img('site_logo'))
|
||||||
|
|
Loading…
Add table
Reference in a new issue