1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 14:30:32 +02:00

[feature/merging-style-components] Creating style class

Creating phpbb_style class, changing template initialization to style initialization

PHPBB3-10632
This commit is contained in:
Vjacheslav Trushkin
2012-03-15 13:13:21 +02:00
parent 39944a08b9
commit 3997ffac2a
7 changed files with 106 additions and 22 deletions

View File

@@ -201,9 +201,8 @@ $config = new phpbb_config(array(
'load_tplcompile' => '1'
));
$phpbb_style_locator = new phpbb_style_locator();
$phpbb_style_path_provider = new phpbb_style_path_provider();
$template = new phpbb_style_template($phpbb_root_path, $phpEx, $config, $user, $phpbb_style_locator, $phpbb_style_path_provider);
$style = new phpbb_style($phpbb_root_path, $phpEx, $config, $user, false);
$template = $style->template;
$template->set_ext_dir_prefix('adm/');
$template->set_custom_template('../adm/style', 'admin');
$template->assign_var('T_ASSETS_PATH', '../assets');