fix OPML import
This commit is contained in:
parent
f0143d4ef9
commit
c4c74732db
3 changed files with 7 additions and 18 deletions
|
@ -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";
|
||||
require_once "opml.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 "</div>";
|
||||
|
||||
print "<div align='center'>";
|
||||
|
|
|
@ -1419,7 +1419,7 @@ class Pref_Feeds extends Protected_Handler {
|
|||
action=\"backend.php\">
|
||||
<input id=\"opml_file\" name=\"opml_file\" type=\"file\">
|
||||
<input type=\"hidden\" name=\"op\" value=\"dlg\">
|
||||
<input type=\"hidden\" name=\"id\" value=\"importOpml\">
|
||||
<input type=\"hidden\" name=\"method\" value=\"importOpml\">
|
||||
<button dojoType=\"dijit.form.Button\" onclick=\"return opmlImport();\" type=\"submit\">" .
|
||||
__('Import') . "</button>";
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<script type="text/javascript" src="lib/dojo/dojo.js" djConfig="parseOnLoad: true"></script>
|
||||
<script type="text/javascript" src="lib/prototype.js"></script>
|
||||
<script type="text/javascript" src="lib/scriptaculous/scriptaculous.js?load=effects,dragdrop,controls"></script>
|
||||
<script type="text/javascript" src="functions.js"></script>
|
||||
<script type="text/javascript" src="js/functions.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="errors.php?mode=js"></script>
|
||||
</head>
|
||||
|
||||
|
|
Loading…
Reference in a new issue