]> git.wh0rd.org Git - tt-rss.git/commitdiff
adding a dialog for revealing the OPML url
authorMatt Katz <mattkatz@ubuntu.ubuntu-domain>
Fri, 9 Apr 2010 23:21:34 +0000 (19:21 -0400)
committerMatt Katz <mattkatz@ubuntu.ubuntu-domain>
Fri, 9 Apr 2010 23:21:34 +0000 (19:21 -0400)
modules/pref-feeds.php

index fc72c01f204d2e8e87c1c07555301a6baa4c930f..7f46c35352f7ba99b1bd8fca6553ec1c4ceca265 100644 (file)
                if (!get_pref($link, "_PREFS_PUBLISH_KEY")) {
                        set_pref($link, "_PREFS_PUBLISH_KEY", generate_publish_key());
                }
+
+                if (!get_pref($link, "_PREFS_OPML_PUBLISH_KEY")){
+                       set_pref($link, "_PREFS_OPML_PUBLISH_KEY", generate_publish_key());
                
                print "<p>".__('Published articles are exported as a public RSS feed and can be subscribed by anyone who knows the URL specified below.')."</p>";
 
                print "<button onclick=\"return displayDlg('pubUrl')\">".
                        __('Display URL')."</button> ";
+                
+               print "<p>".__('Your OPML can be published publicly and can be subscribed by anyone who knows the URL below.')."</p>";
+
+               print "<button onclick=\"return displayDlg('pubOPMLUrl')\">".
+                       __('Display URL')."</button> ";
 
 
        }