mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Replace current_theme() and current_theme_url() calls
This commit is contained in:
parent
a162d4b583
commit
82fd1df5dd
2 changed files with 6 additions and 6 deletions
|
@ -21,9 +21,9 @@ function membersince_uninstall()
|
|||
Addon::unregisterHook('profile_advanced', 'addon/membersince/membersince.php', 'membersince_display');
|
||||
}
|
||||
|
||||
function membersince_display(&$a, &$b)
|
||||
function membersince_display(Friendica\App $a, &$b)
|
||||
{
|
||||
if (current_theme() == 'frio') {
|
||||
if ($a->getCurrentTheme() == 'frio') {
|
||||
// Works in Frio.
|
||||
$doc = new DOMDocument();
|
||||
$doc->loadHTML(mb_convert_encoding($b, 'HTML-ENTITIES', 'UTF-8'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue