yeswiki-custom-reseau.s-mar.../actions/yunohostJsAction.php

20 lines
472 B
PHP
Raw Permalink Normal View History

2023-12-21 16:34:13 +00:00
<?php
use YesWiki\Core\YesWikiAction;
use YesWiki\Core\Service\AssetsManager;
class YunohostJsAction extends YesWikiAction
{
public function formatArguments($arg)
{
return [
];
}
public function run()
{
$this->wiki->services->get(AssetsManager::class)->AddJavascriptFile('custom/actions/annuaire.js', false, true);
$this->wiki->services->get(AssetsManager::class)->AddJavascriptFile('custom/actions/yunohost_user.js', false, true);
}
}