From 83b0738b04d1af07614164d66f8aa11d2465f539 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 12 Feb 2021 08:22:00 +0300 Subject: opml import: no more iframe, use client dialog --- classes/dlg.php | 22 ---------------------- classes/pref/feeds.php | 15 +++++++-------- 2 files changed, 7 insertions(+), 30 deletions(-) (limited to 'classes') diff --git a/classes/dlg.php b/classes/dlg.php index f62a42b4d..4240ad222 100644 --- a/classes/dlg.php +++ b/classes/dlg.php @@ -13,28 +13,6 @@ class Dlg extends Handler_Protected { return false; } - function importOpml() { - print_notice("If you have imported labels and/or filters, you might need to reload preferences to see your new data."); - - print "
"; - - $opml = new OPML($_REQUEST); - - $opml->opml_import($_SESSION["uid"]); - - print "
"; - - print ""; - - print ""; - - //return; - } - function printTagCloud() { print "
"; diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index 949b23c20..5fcafeaae 100755 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -1194,6 +1194,11 @@ class Pref_Feeds extends Handler_Protected { Feeds::add_feed_category($feed_cat); } + function importOpml() { + $opml = new OPML($_REQUEST); + $opml->opml_import($_SESSION["uid"]); + } + function index() { print "
"; @@ -1340,17 +1345,11 @@ class Pref_Feeds extends Handler_Protected { print_notice("Only main settings profile can be migrated using OPML."); - print ""; - - print "
+ print " - +