]> git.wh0rd.org - tt-rss.git/blobdiff - include/functions.php
remove unused format_libxml_error
[tt-rss.git] / include / functions.php
index ee061eca7131b7eaa12bacab58875da4f6e074cb..764dea10eccee68ebaef8e765e4c0bd0442cb80c 100644 (file)
@@ -64,7 +64,7 @@
        function get_translations() {
                $tr = array(
                                        "auto"  => "Detect automatically",
-                                       "ar_SA" => "العربيّة",
+                                       "ar_SA" => "العربيّة (Arabic)",
                                        "da_DA" => "Dansk",
                                        "ca_CA" => "Català",
                                        "cs_CZ" => "Česky",
 
                        $fetch_curl_used = true;
 
-                       if (ini_get("safe_mode") || ini_get("open_basedir")) {
+                       if (ini_get("safe_mode") || ini_get("open_basedir") || defined("FORCE_GETURL")) {
                                $new_url = geturl($url);
                                if (!$new_url) {
                                    // geturl has already populated $fetch_last_error
                        $url = key($feedUrls);
                }
 
-               /* libxml_use_internal_errors(true);
-               $doc = new DOMDocument();
-               $doc->loadXML($contents);
-               $error = libxml_get_last_error();
-               libxml_clear_errors();
-
-               if ($error) {
-                       $error_message = format_libxml_error($error);
-
-                       return array("code" => 6, "message" => $error_message);
-               } */
-
                if ($cat_id == "0" || !$cat_id) {
                        $cat_qpart = "NULL";
                } else {