]> git.wh0rd.org - tt-rss.git/blobdiff - opml.php
change _() to __() (use php-gettext)
[tt-rss.git] / opml.php
index 718d47bbcbc335fe7b3103edc9731bb1134b0cd6..0113fe9e0463413024c13596b09ebec0617c3501 100644 (file)
--- a/opml.php
+++ b/opml.php
@@ -1,4 +1,6 @@
 <?php
+       error_reporting(E_ERROR | E_WARNING | E_PARSE);
+
        require_once "sessions.php";
        require_once "sanity_check.php";
        require_once "functions.php";
@@ -17,9 +19,9 @@
 
        $owner_uid = $_SESSION["uid"];
 
-       function opml_export($link) {
+       function opml_export($link, $owner_uid) {
                header("Content-type: application/xml+opml");
-               print "<?phpxml version=\"1.0\"?>";
+               print "<?xml version=\"1.0\"?>";
 
                print "<opml version=\"1.0\">";
                print "<head>
@@ -90,7 +92,7 @@
        if (!$op) $op = "Export";
        
        if ($op == "Export") {
-               return opml_export($link);
+               return opml_export($link, $owner_uid);
        }
 
        if ($op == "Import") {
                        </head>
                        <body>
                        <div class=\"floatingLogo\"><img src=\"images/ttrss_logo.png\"></div>
-                       <h1>"._('OPML Utility')."</h1>";
+                       <h1>".__('OPML Utility')."</h1>";
 
                if (function_exists('domxml_open_file')) {
                        print "<p>Importing OPML (using DOMXML extension)...</p>";