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);
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
*
// 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]);