19 lines
472 B
PHP
19 lines
472 B
PHP
<?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);
|
|
}
|
|
}
|