1
0
Fork 0

old boot.php functions replaced in various places

This commit is contained in:
Michael 2022-10-19 05:06:28 +00:00 committed by Hypolite Petovan
commit 11944dda32
20 changed files with 183 additions and 105 deletions

View file

@ -34,6 +34,7 @@
* 'overwrites' => Variables which overwriting custom settings
*/
use Friendica\Core\Session;
use Friendica\DI;
use Friendica\Util\Strings;
@ -42,7 +43,7 @@ function get_scheme_info($scheme)
$theme = DI::app()->getCurrentTheme();
$themepath = 'view/theme/' . $theme . '/';
if (empty($scheme)) {
$scheme = DI::pConfig()->get(local_user(), 'frio', 'scheme', DI::pConfig()->get(local_user(), 'frio', 'schema', '---'));
$scheme = DI::pConfig()->get(Session::getLocalUser(), 'frio', 'scheme', DI::pConfig()->get(Session::getLocalUser(), 'frio', 'schema', '---'));
}
$scheme = Strings::sanitizeFilePathItem($scheme);