|
12 | 12 | use FeatherBB\Core\Lister; |
13 | 13 | use FeatherBB\Core\Random; |
14 | 14 | use FeatherBB\Core\Utils; |
| 15 | +use FeatherBB\Core\Url; |
15 | 16 | use FeatherBB\Middleware\Core; |
16 | 17 |
|
17 | 18 | class Install |
@@ -49,7 +50,7 @@ public function run() |
49 | 50 | $csrf = new \FeatherBB\Middleware\Csrf(); |
50 | 51 | $csrf->generateNewToken(Container::get('request')); |
51 | 52 |
|
52 | | - translate(ForumEnv::get('install', 'featherbb', $this->install_lang)); |
| 53 | + translate('install', 'featherbb', $this->install_lang); |
53 | 54 |
|
54 | 55 | if (Request::isPost() && empty(Input::getParsedBodyParam('choose_lang'))) { |
55 | 56 | $missing_fields = array(); |
@@ -137,7 +138,7 @@ public function run() |
137 | 138 | return $this->create_config($data); |
138 | 139 | } |
139 | 140 | } else { |
140 | | - $base_url = str_replace('index.php', '', URL::base()); |
| 141 | + $base_url = str_replace('index.php', '', Url::base()); |
141 | 142 | $data = array('title' => __('My FeatherBB Forum'), |
142 | 143 | 'description' => __('Description'), |
143 | 144 | 'base_url' => $base_url, |
@@ -187,7 +188,7 @@ public function create_db(array $data) |
187 | 188 | // Init DB |
188 | 189 | Core::init_db($data); |
189 | 190 | // Load appropriate language |
190 | | - translate(ForumEnv::get('install', 'featherbb', $data['default_lang'])); |
| 191 | + translate('install', 'featherbb', $data['default_lang']); |
191 | 192 |
|
192 | 193 | // Create tables |
193 | 194 | foreach ($this->model->get_database_scheme() as $table => $sql) { |
|
0 commit comments