summaryrefslogtreecommitdiff
path: root/opml.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-06-05 11:32:53 +0100
committerAndrew Dolgov <[email protected]>2007-06-05 11:32:53 +0100
commit5eb66ed7d983c820a51e3f2ccb284063975a62e6 (patch)
treeab79c3ddc3d8d9d5255f5c929ce6acf3b310ef22 /opml.php
parent1b1b8a7b848d726d944976f1bad26a616cfac049 (diff)
check PHP version before trying to use DOMDocument
Diffstat (limited to 'opml.php')
-rw-r--r--opml.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/opml.php b/opml.php
index 701d8396b..8d3f8d62b 100644
--- a/opml.php
+++ b/opml.php
@@ -110,10 +110,12 @@
print "<p>".__("Importing OPML (using DOMXML extension)...")."</p>";
require_once "modules/opml_domxml.php";
opml_import_domxml($link, $owner_uid);
- } else {
+ } else if (PHP_VERSION >= 5) {
print "<p>".__("Importing OPML (using DOMDocument extension)...")."</p>";
require_once "modules/opml_domdoc.php";
opml_import_domdoc($link, $owner_uid);
+ } else {
+ print_error(__("DOMXML extension is not found. It is required for PHP versions below 5."));
}
print "<br><form method=\"GET\" action=\"prefs.php\">