1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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;
|