summaryrefslogtreecommitdiff
path: root/debian/patches/031_fix_installer.patch
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2018-03-12 22:57:42 +0100
committerOlivier Gayot <duskcoder@gmail.com>2018-03-12 22:57:42 +0100
commita8c22829d8e8845cd4ddf4ef8b61a1ed79edfffc (patch)
treef0ae554b863266fbe523582d1be09216436c7472 /debian/patches/031_fix_installer.patch
Imported from the SVN repository
http://svn.wolffelaar.nl/wsvn/phpbb/branches/jessie/ Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
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;