@@ -43,7 +43,7 @@ public static function getMenu(GenericEvent $event)
4343 if ($ GLOBALS ['tf ' ]->ima == 'admin ' ) {
4444 function_requirements ('has_acl ' );
4545 if (has_acl ('client_billing ' )) {
46- $ menu ->add_link ('admin ' , 'choice=none.abuse_admin ' , '/lib/webhostinghub-glyphs-icons/icons/development-16/Black/icon-spam.png ' , 'Novnc ' );
46+ $ menu ->add_link ('admin ' , 'choice=none.abuse_admin ' , '/lib/webhostinghub-glyphs-icons/icons/development-16/Black/icon-spam.png ' , __ ( 'Novnc ' ) );
4747 }
4848 }
4949 }
@@ -53,7 +53,10 @@ function_requirements('has_acl');
5353 */
5454 public static function getRequirements (GenericEvent $ event )
5555 {
56- $ loader = $ event ->getSubject ();
56+ /**
57+ * @var \MyAdmin\Plugins\Loader $this->loader
58+ */
59+ $ loader = $ event ->getSubject ();
5760 $ loader ->add_requirement ('class.Novnc ' , '/../vendor/detain/myadmin-novnc-plugin/src/Novnc.php ' );
5861 $ loader ->add_requirement ('deactivate_kcare ' , '/../vendor/detain/myadmin-novnc-plugin/src/abuse.inc.php ' );
5962 $ loader ->add_requirement ('deactivate_abuse ' , '/../vendor/detain/myadmin-novnc-plugin/src/abuse.inc.php ' );
@@ -63,10 +66,13 @@ public static function getRequirements(GenericEvent $event)
6366 /**
6467 * @param \Symfony\Component\EventDispatcher\GenericEvent $event
6568 */
66- public static function getSettings (GenericEvent $ event )
67- {
68- $ settings = $ event ->getSubject ();
69- $ settings ->add_text_setting ('General ' , 'Novnc ' , 'abuse_imap_user ' , 'Novnc IMAP User: ' , 'Novnc IMAP Username ' , ABUSE_IMAP_USER );
70- $ settings ->add_text_setting ('General ' , 'Novnc ' , 'abuse_imap_pass ' , 'Novnc IMAP Pass: ' , 'Novnc IMAP Password ' , ABUSE_IMAP_PASS );
69+ public static function getSettings (GenericEvent $ event )
70+ {
71+ /**
72+ * @var \MyAdmin\Settings $settings
73+ **/
74+ $ settings = $ event ->getSubject ();
75+ $ settings ->add_text_setting (__ ('General ' ), __ ('Novnc ' ), 'abuse_imap_user ' , __ ('Novnc IMAP User ' ), __ ('Novnc IMAP Username ' ), ABUSE_IMAP_USER );
76+ $ settings ->add_text_setting (__ ('General ' ), __ ('Novnc ' ), 'abuse_imap_pass ' , __ ('Novnc IMAP Pass ' ), __ ('Novnc IMAP Password ' ), ABUSE_IMAP_PASS );
7177 }
7278}
0 commit comments