diff --git a/classes/pref/users.php b/classes/pref/users.php
index 5b5120e1b..891a69a52 100644
--- a/classes/pref/users.php
+++ b/classes/pref/users.php
@@ -19,15 +19,8 @@ class Pref_Users extends Handler_Protected {
function userdetails() {
- header("Content-Type: text/xml");
- print "";
-
$uid = sprintf("%d", $_REQUEST["id"]);
- print "".__('User details')."";
-
- print "link, "SELECT login,
".SUBSTRING_FOR_DATE."(last_login,1,16) AS last_login,
access_level,
@@ -106,22 +99,13 @@ class Pref_Users extends Handler_Protected {
";
- print "]]>";
-
return;
}
function edit() {
global $access_level_names;
- header("Content-Type: text/xml");
-
$id = db_escape_string($this->link, $_REQUEST["id"]);
-
- print "";
- print "".__('User Editor')."";
- print "";
print "";
@@ -193,8 +177,6 @@ class Pref_Users extends Handler_Protected {
";
- print "]]>";
-
return;
}
diff --git a/js/prefs.js b/js/prefs.js
index 5ba1e5d3d..358625e93 100644
--- a/js/prefs.js
+++ b/js/prefs.js
@@ -91,7 +91,7 @@ function editUser(id, event) {
new Ajax.Request("backend.php", {
parameters: query,
onComplete: function(transport) {
- infobox_callback2(transport);
+ infobox_callback2(transport, __("User Editor"));
document.forms['user_edit_form'].login.focus();
} });
@@ -582,7 +582,7 @@ function selectedUserDetails() {
new Ajax.Request("backend.php", {
parameters: query,
onComplete: function(transport) {
- infobox_callback2(transport);
+ infobox_callback2(transport, __("User details"));
} });
} catch (e) {
exception_error("selectedUserDetails", e);