From 4a16bda3d06b2d7e17602e52f3cfc1fd5a2a2a2e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 29 Nov 2010 16:19:32 +0300 Subject: rpc/updateFeedBrowser: use JSON --- modules/pref-feeds.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'modules/pref-feeds.php') diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index ed320d191..33d3a43fc 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -1362,9 +1362,10 @@ } - function print_feed_browser($link, $search, $limit, $mode = 1) { + function make_feed_browser($link, $search, $limit, $mode = 1) { - $owner_uid = $_SESSION["uid"]; + $owner_uid = $_SESSION["uid"]; + $rv = ''; if ($search) { $search_qpart = "AND (UPPER(feed_url) LIKE UPPER('%$search%') OR @@ -1436,7 +1437,7 @@ style='border-width : 0px; vertical-align : middle' src='images/feed-icon-12x12.png'>"; - print "
  • $check_box". "$feed_icon $feed_url " . htmlspecialchars($details["title"]) . " ($subscribers) @@ -1479,7 +1480,7 @@ style='border-width : 0px; vertical-align : middle' src='images/feed-icon-12x12.png'>"; - print "
  • ". $check_box . "$feed_icon $feed_url " . $title . $archived . $site_url . "
  • "; @@ -1491,10 +1492,10 @@ } if ($feedctr == 0) { - print "
  • ".__('No feeds found.')."

  • "; + $rv .= "
  • ".__('No feeds found.')."

  • "; } - return $feedctr; + return $rv; } -- cgit v1.2.3-54-g00ecf