@@ -70,7 +70,17 @@ function sanitize_mysql_kv(&$v, $k)
7070$ header_notes = array ();
7171$ filter = array ();
7272
73- @include (PHPWG_ROOT_PATH .'local/config/database.inc.php ' );
73+ if (is_file (PHPWG_ROOT_PATH .'local/config/multisite.inc.php ' ))
74+ {
75+ include (PHPWG_ROOT_PATH .'local/config/multisite.inc.php ' );
76+ define ('PWG_LOCAL_DIR ' , $ conf ['local_dir_site ' ]);
77+ }
78+ else
79+ {
80+ define ('PWG_LOCAL_DIR ' , 'local/ ' );
81+ }
82+
83+ @include (PHPWG_ROOT_PATH .PWG_LOCAL_DIR .'config/database.inc.php ' );
7484if (!defined ('PHPWG_INSTALLED ' ))
7585{
7686 header ('Location: install.php ' );
@@ -92,6 +102,10 @@ function sanitize_mysql_kv(&$v, $k)
92102
93103include (PHPWG_ROOT_PATH . 'include/config_default.inc.php ' );
94104@include (PHPWG_ROOT_PATH . 'local/config/config.inc.php ' );
105+ if (isset ($ conf ['local_dir_site ' ]))
106+ {
107+ @include (PHPWG_ROOT_PATH .PWG_LOCAL_DIR . 'config/config.inc.php ' );
108+ }
95109include (PHPWG_ROOT_PATH .'include/dblayer/functions_ ' .$ conf ['dblayer ' ].'.inc.php ' );
96110
97111if (isset ($ conf ['show_php_errors ' ]) && !empty ($ conf ['show_php_errors ' ]))
@@ -151,7 +165,7 @@ function sanitize_mysql_kv(&$v, $k)
151165 load_language ('admin.lang ' );
152166}
153167trigger_action ('loading_lang ' );
154- load_language ('lang ' , PHPWG_ROOT_PATH .' local/ ' , array ('no_fallback ' =>true , 'local ' =>true ) );
168+ load_language ('lang ' , PHPWG_ROOT_PATH .PWG_LOCAL_DIR , array ('no_fallback ' =>true , 'local ' =>true ) );
155169
156170// only now we can set the localized username of the guest user (and not in
157171// include/user.inc.php)
0 commit comments