3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-05 12:15:43 +00:00

Use url() helper over URL::to

This commit is contained in:
snipe
2016-12-15 16:41:36 -08:00
parent b7a2c4c26d
commit aab0933856
46 changed files with 123 additions and 120 deletions

View File

@ -59,9 +59,9 @@ class SettingsController extends Controller
}
$pageURL = $protocol . $host . $_SERVER['REQUEST_URI'];
$start_settings['url_valid'] = (\URL::to('/').'/setup' === $pageURL);
$start_settings['url_valid'] = (\url('/').'/setup' === $pageURL);
$start_settings['url_config'] = \URL::to('/');
$start_settings['url_config'] = \url('/');
$start_settings['real_url'] = $pageURL;
$exposed_env = @file_get_contents($protocol . $host.'/.env');