From a8c22829d8e8845cd4ddf4ef8b61a1ed79edfffc Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Mon, 12 Mar 2018 22:57:42 +0100 Subject: Imported from the SVN repository http://svn.wolffelaar.nl/wsvn/phpbb/branches/jessie/ Signed-off-by: Olivier Gayot --- debian/patches/031_fix_installer.patch | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 debian/patches/031_fix_installer.patch (limited to 'debian/patches/031_fix_installer.patch') diff --git a/debian/patches/031_fix_installer.patch b/debian/patches/031_fix_installer.patch new file mode 100644 index 0000000..070fafc --- /dev/null +++ b/debian/patches/031_fix_installer.patch @@ -0,0 +1,37 @@ +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; -- cgit v1.2.3