namespace Friendica\Core;
-use Friendica\BaseObject;
+use Friendica\DI;
use Friendica\Model\Profile;
use Friendica\Util\Strings;
}
}
- return $allowed_themes;
+ return array_unique($allowed_themes);
}
public static function setAllowedList(array $allowed_themes)
{
- Config::set('system', 'allowed_themes', implode(',', $allowed_themes));
+ Config::set('system', 'allowed_themes', implode(',', array_unique($allowed_themes)));
}
/**
*/
public static function getPathForFile($file)
{
- $a = BaseObject::getApp();
+ $a = DI::app();
$theme = $a->getCurrentTheme();
return 'view/theme/' . $theme . '/style.css';
}
- $a = BaseObject::getApp();
+ $a = DI::app();
$query_params = [];