From 3412e50b54e3daac8745234e21ab6e72be0ed165 Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Wed, 04 Jun 2014 11:20:33 -0400
Subject: [PATCH] Fix attachment menu structure and aria-attributes

---
 plugins/userinfo/userinfo.php |   30 ++++++++++++++++--------------
 1 files changed, 16 insertions(+), 14 deletions(-)

diff --git a/plugins/userinfo/userinfo.php b/plugins/userinfo/userinfo.php
index 0f1b18c..a175563 100644
--- a/plugins/userinfo/userinfo.php
+++ b/plugins/userinfo/userinfo.php
@@ -6,7 +6,9 @@
  */
 class userinfo extends rcube_plugin
 {
-  public $task = 'settings';
+  public $task    = 'settings';
+  public $noajax  = true;
+  public $noframe = true;
 
   function init()
   {
@@ -29,25 +31,25 @@
     $table = new html_table(array('cols' => 2, 'cellpadding' => 3));
 
     $table->add('title', 'ID');
-    $table->add('', Q($user->ID));
+    $table->add('', rcube::Q($user->ID));
     
-    $table->add('title', Q($this->gettext('username')));
-    $table->add('', Q($user->data['username']));
+    $table->add('title', rcube::Q($this->gettext('username')));
+    $table->add('', rcube::Q($user->data['username']));
     
-    $table->add('title', Q($this->gettext('server')));
-    $table->add('', Q($user->data['mail_host']));
+    $table->add('title', rcube::Q($this->gettext('server')));
+    $table->add('', rcube::Q($user->data['mail_host']));
 
-    $table->add('title', Q($this->gettext('created')));
-    $table->add('', Q($user->data['created']));
+    $table->add('title', rcube::Q($this->gettext('created')));
+    $table->add('', rcube::Q($user->data['created']));
 
-    $table->add('title', Q($this->gettext('lastlogin')));
-    $table->add('', Q($user->data['last_login']));
+    $table->add('title', rcube::Q($this->gettext('lastlogin')));
+    $table->add('', rcube::Q($user->data['last_login']));
     
     $identity = $user->get_identity();
-    $table->add('title', Q($this->gettext('defaultidentity')));
-    $table->add('', Q($identity['name'] . ' <' . $identity['email'] . '>'));
+    $table->add('title', rcube::Q($this->gettext('defaultidentity')));
+    $table->add('', rcube::Q($identity['name'] . ' <' . $identity['email'] . '>'));
     
-    return html::tag('h4', null, Q('Infos for ' . $user->get_username())) . $table->show();
+    return html::tag('h4', null, rcube::Q('Infos for ' . $user->get_username())) . $table->show();
   }
 
-}
\ No newline at end of file
+}

--
Gitblit v1.9.1