summaryrefslogtreecommitdiff
path: root/debian/patches/031_fix_installer.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/031_fix_installer.patch')
-rw-r--r--debian/patches/031_fix_installer.patch37
1 files changed, 37 insertions, 0 deletions
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 <david@tilapin.org>
+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;