1
0
Fork 0

Remove get_app() in favor of DI::app()

This commit is contained in:
Philipp Holzer 2020-01-04 23:42:01 +01:00
commit f0eea6f875
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
26 changed files with 110 additions and 97 deletions

View file

@ -19,11 +19,12 @@
*/
use Friendica\Core\PConfig;
use Friendica\DI;
use Friendica\Util\Strings;
function get_scheme_info($scheme)
{
$theme = \get_app()->getCurrentTheme();
$theme = DI::app()->getCurrentTheme();
$themepath = 'view/theme/' . $theme . '/';
if (empty($scheme)) {
$scheme = PConfig::get(local_user(), 'frio', 'scheme', PConfig::get(local_user(), 'frio', 'schema'));