File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,3 @@ include/config.php
33.idea /
44nbproject /
55lang /French
6- .htaccess
Original file line number Diff line number Diff line change 1+ RewriteEngine On
2+ RewriteCond %{REQUEST_FILENAME} !-f
3+ RewriteRule ^ index.php [QSA,L]
Original file line number Diff line number Diff line change @@ -128,9 +128,10 @@ public function run()
128128 $ this ->create_config ($ data );
129129 }
130130 } else {
131+ $ base_url = str_replace ('index.php ' , '' , $ this ->feather ->request ->getUrl ().$ this ->feather ->request ->getRootUri ());
131132 $ data = array ('title ' => __ ('My FeatherBB Forum ' ),
132133 'description ' => __ ('Description ' ),
133- 'base_url ' => $ this -> feather -> request -> getUrl (). $ this -> feather -> request -> getRootUri () ,
134+ 'base_url ' => $ base_url ,
134135 'default_lang ' => $ this ->install_lang );
135136 if (isset ($ this ->environment ['slim.flash ' ])) {
136137 $ this ->feather ->view ()->set ('flash ' , $ this ->environment ['slim.flash ' ]);
@@ -193,6 +194,9 @@ public function create_db(array $data)
193194 $ this ->model ->add_mock_forum ($ this ->model ->load_mock_forum_data ($ data ));
194195 // Store config in DB
195196 $ this ->model ->save_config ($ this ->load_default_config ($ data ));
197+
198+ // Redirect to homepage
199+ redirect (get_link ('/ ' ));
196200 }
197201
198202 public function write_config ($ json )
You can’t perform that action at this time.
0 commit comments