From: Andrew Dolgov Date: Mon, 1 Apr 2013 14:28:47 +0000 (+0400) Subject: remove obsolete xml stuff in pref-users infoboxes X-Git-Tag: 1.7.6~60 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=977580a41c95415e0c5827421cb1e9fd2225476f;p=tt-rss.git remove obsolete xml stuff in pref-users infoboxes --- diff --git a/classes/pref/users.php b/classes/pref/users.php index 5b5120e1..891a69a5 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 5ba1e5d3..358625e9 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);