summaryrefslogtreecommitdiff
path: root/classes/dlg.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-12-22 16:45:19 +0400
committerAndrew Dolgov <[email protected]>2011-12-22 16:45:19 +0400
commitc4c74732db6b4ee63d970af29d1abfc692a17d7c (patch)
tree8b02cfce7241096c270cf50a411973b5bd18041a /classes/dlg.php
parentf0143d4ef9160e816e4b0320e6bd118a41fe587b (diff)
fix OPML import
Diffstat (limited to 'classes/dlg.php')
-rw-r--r--classes/dlg.php21
1 files changed, 5 insertions, 16 deletions
diff --git a/classes/dlg.php b/classes/dlg.php
index b0cfe4451..a72683ef3 100644
--- a/classes/dlg.php
+++ b/classes/dlg.php
@@ -40,22 +40,11 @@ class Dlg extends Protected_Handler {
/* Handle OPML import by DOMXML/DOMDocument */
- if (function_exists('domxml_open_file')) {
- print "<ul class='nomarks'>";
- print "<li>".__("Importing using DOMXML.")."</li>";
- require_once "opml_domxml.php";
- opml_import_domxml($this->link, $owner_uid);
- print "</ul>";
- } else if (PHP_VERSION >= 5) {
- print "<ul class='nomarks'>";
- print "<li>".__("Importing using DOMDocument.")."</li>";
- require_once "opml_domdoc.php";
- opml_import_domdoc($this->link, $owner_uid);
- print "</ul>";
- } else {
- print_error(__("DOMXML extension is not found. It is required for PHP versions below 5."));
- }
-
+ print "<ul class='nomarks'>";
+ print "<li>".__("Importing using DOMDocument.")."</li>";
+ require_once "opml.php";
+ opml_import_domdoc($this->link, $owner_uid);
+ print "</ul>";
print "</div>";
print "<div align='center'>";