add constante for the app id and the app name
This commit is contained in:
@@ -21,6 +21,7 @@ namespace OCA\SideMenu\Settings;
|
||||
use OCP\IL10N;
|
||||
use OCP\IURLGenerator;
|
||||
use OCP\Settings\IIconSection;
|
||||
use OCA\SideMenu\AppInfo\Application;
|
||||
|
||||
class PersonalSection implements IIconSection
|
||||
{
|
||||
@@ -52,7 +53,7 @@ class PersonalSection implements IIconSection
|
||||
*/
|
||||
public function getID()
|
||||
{
|
||||
return 'side_menu';
|
||||
return Application::APP_ID;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -63,7 +64,7 @@ class PersonalSection implements IIconSection
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->l->t('Side menu');
|
||||
return $this->l->t(Application::APP_NAME);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user