mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-21 22:03:40 +00:00
[url_replace] Normalize formatting
This commit is contained in:
parent
0812886b61
commit
eeb783d71d
1 changed files with 8 additions and 6 deletions
|
@ -6,6 +6,7 @@
|
|||
* Author: Dr. Tobias Quathamer <https://social.anoxinon.de/@toddy>
|
||||
* Maintainer: Dr. Tobias Quathamer <https://social.anoxinon.de/@toddy>
|
||||
*/
|
||||
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\DI;
|
||||
|
@ -47,6 +48,7 @@ function url_replace_addon_admin(string &$o)
|
|||
$nitter_server = DI::config()->get('url_replace', 'nitter_server');
|
||||
$invidious_server = DI::config()->get('url_replace', 'invidious_server');
|
||||
$twelvefeet_sites = implode(PHP_EOL, DI::config()->get('url_replace', 'twelvefeet_sites'));
|
||||
|
||||
$t = Renderer::getMarkupTemplate('admin.tpl', 'addon/url_replace/');
|
||||
$o = Renderer::replaceMacros($t, [
|
||||
'$nitter_server' => [
|
||||
|
|
Loading…
Reference in a new issue