add constante for the app id and the app name
This commit is contained in:
parent
78c95c58ff
commit
9a67c165bd
9 changed files with 89 additions and 77 deletions
|
|
@ -21,6 +21,7 @@ namespace OCA\SideMenu\Settings;
|
|||
use OCP\IL10N;
|
||||
use OCP\IURLGenerator;
|
||||
use OCP\Settings\IIconSection;
|
||||
use OCA\SideMenu\AppInfo\Application;
|
||||
|
||||
class AdminSection implements IIconSection
|
||||
{
|
||||
|
|
@ -52,7 +53,7 @@ class AdminSection implements IIconSection
|
|||
*/
|
||||
public function getID()
|
||||
{
|
||||
return 'side_menu';
|
||||
return Application::APP_ID;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -63,7 +64,7 @@ class AdminSection implements IIconSection
|
|||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->l->t('Side menu');
|
||||
return $this->l->t(Application::APP_NAME);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue