1
0
Fork 0

Remove deprecated App::setBaseURL() - process methods to DI::baseUrl()->saveByURL()

This commit is contained in:
Philipp Holzer 2019-12-16 00:48:20 +01:00
parent 50be94aa5e
commit e57a87f224
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
3 changed files with 2 additions and 16 deletions

View file

@ -46,7 +46,7 @@ if (!DI::mode()->has(App\Mode::MAINTENANCEDISABLED)) {
return;
}
$a->setBaseURL(Config::get('system', 'url'));
DI::baseUrl()->saveByURL(Config::get('system', 'url'));
$spawn = array_key_exists('s', $options) || array_key_exists('spawn', $options);

View file

@ -285,20 +285,6 @@ class App
return $this->baseURL->get($ssl);
}
/**
* @brief Initializes the baseurl components
*
* Clears the baseurl cache to prevent inconsistencies
*
* @param string $url
*
* @deprecated 2019.06 - use BaseURL->saveByURL($url) instead
*/
public function setBaseURL($url)
{
$this->baseURL->saveByURL($url);
}
/**
* Returns the current UserAgent as a String
*

View file

@ -95,7 +95,7 @@ class Site extends BaseAdminModule
// update config
Config::set('system', 'url', $new_url);
$a->setBaseURL($new_url);
DI::baseUrl()->saveByURL($new_url);
// send relocate
$usersStmt = DBA::select('user', ['uid'], ['account_removed' => false, 'account_expired' => false]);