diff --git a/classes/dlg.php b/classes/dlg.php
index 376f8d265..32a3b230a 100644
--- a/classes/dlg.php
+++ b/classes/dlg.php
@@ -42,122 +42,6 @@ class Dlg extends Handler_Protected {
//return;
}
- function editPrefProfiles() {
- print "
";
-
- print "
".
- "
" . __('Select')."";
- print "
";
- print "
".__('All')."
";
- print "
".__('None')."
";
- print "
";
-
- print "
";
-
- print "
-
";
-
- print "
";
-
- $result = db_query($this->link, "SELECT title,id FROM ttrss_settings_profiles
- WHERE owner_uid = ".$_SESSION["uid"]." ORDER BY title");
-
- print "";
-
- print "
";
- print "
";
-
- print "";
-
- }
-
function pubOPMLUrl() {
$url_path = Opml::opml_publish_url($this->link);
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php
index 21b25c631..cc523092f 100644
--- a/classes/pref/prefs.php
+++ b/classes/pref/prefs.php
@@ -2,7 +2,7 @@
class Pref_Prefs extends Handler_Protected {
function csrf_ignore($method) {
- $csrf_ignored = array("index", "updateself", "customizecss");
+ $csrf_ignored = array("index", "updateself", "customizecss", "editprefprofiles");
return array_search($method, $csrf_ignored) !== false;
}
@@ -898,5 +898,122 @@ class Pref_Prefs extends Handler_Protected {
}
+ function editPrefProfiles() {
+ print "";
+
+ print "
".
+ "
" . __('Select')."";
+ print "
";
+ print "
".__('All')."
";
+ print "
".__('None')."
";
+ print "
";
+
+ print "
";
+
+ print "
+
";
+
+ print "
";
+
+ $result = db_query($this->link, "SELECT title,id FROM ttrss_settings_profiles
+ WHERE owner_uid = ".$_SESSION["uid"]." ORDER BY title");
+
+ print "";
+
+ print "
";
+ print "
";
+
+ print "";
+
+ }
+
+
}
?>
diff --git a/js/prefs.js b/js/prefs.js
index 678332616..30dad0d88 100644
--- a/js/prefs.js
+++ b/js/prefs.js
@@ -1400,7 +1400,7 @@ function editProfiles() {
if (dijit.byId("profileEditDlg"))
dijit.byId("profileEditDlg").destroyRecursive();
- var query = "backend.php?op=dlg&method=editPrefProfiles";
+ var query = "backend.php?op=pref-prefs&method=editPrefProfiles";
dialog = new dijit.Dialog({
id: "profileEditDlg",