Author: David Prévot Description: Fix PHPBB_ROOT_PATH in install-XXX (used in multiboard). Bug-Debian: http://bugs.debian.org/644276 Last-Update: 2011-11-11 --- a/install/database_update.php +++ b/install/database_update.php @@ -31,6 +31,8 @@ define('IN_PHPBB', true); define('IN_INSTALL', true); +define('PHPBB_ROOT_PATH', '/usr/share/phpbb3/www/'); + $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); --- a/install/index.php +++ b/install/index.php @@ -15,6 +15,8 @@ define('IN_INSTALL', true); /**#@-*/ +define('PHPBB_ROOT_PATH', '/usr/share/phpbb3/www/'); + $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); @@ -191,8 +193,8 @@ 'load_tplcompile' => '1' ); -$template->set_custom_template('../adm/style', 'admin'); -$template->assign_var('T_TEMPLATE_PATH', '../adm/style'); +$template->set_custom_template('/usr/share/phpbb3/www/adm/style', 'admin'); +$template->assign_var('T_TEMPLATE_PATH', '/usr/share/phpbb3/www/adm/style'); // the acp template is never stored in the database $user->theme['template_storedb'] = false;