parent
0532bc8ee3
commit
f154e12804
|
@ -3,24 +3,15 @@
|
|||
namespace OCA\Memories\Settings;
|
||||
|
||||
use OCP\AppFramework\Http\TemplateResponse;
|
||||
use OCP\IConfig;
|
||||
use OCP\IL10N;
|
||||
use OCP\Settings\ISettings;
|
||||
|
||||
class Admin implements ISettings
|
||||
{
|
||||
/** @var IConfig */
|
||||
private $config;
|
||||
protected $appName;
|
||||
|
||||
/** @var IL10N */
|
||||
private $l;
|
||||
|
||||
public function __construct(
|
||||
IConfig $config,
|
||||
IL10N $l
|
||||
) {
|
||||
$this->config = $config;
|
||||
$this->l = $l;
|
||||
public function __construct(string $AppName)
|
||||
{
|
||||
$this->appName = $AppName;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -28,14 +19,14 @@ class Admin implements ISettings
|
|||
*/
|
||||
public function getForm()
|
||||
{
|
||||
\OCP\Util::addScript('memories', 'memories-admin');
|
||||
\OCP\Util::addScript($this->appName, 'memories-admin');
|
||||
|
||||
return new TemplateResponse('memories', 'main', []);
|
||||
}
|
||||
|
||||
public function getSection()
|
||||
{
|
||||
return 'memories';
|
||||
return $this->appName;
|
||||
}
|
||||
|
||||
public function getPriority()
|
||||
|
|
Loading…
Reference in New Issue