Ignore:
Timestamp:
May 14, 2006, 4:27:00 PM (15 years ago)
Author:
Dominic Hargreaves
Message:

Revert changeset 769 to reintroduce Atom support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/OpenGuides.pm

    r783 r784  
    156156        $tt_vars{"rss_".lc($type)."_url"} =
    157157                           $config->script_name . "?action=rc;format=rss;"
     158                           . lc($type) . "=" . lc(CGI->escape($2));
     159        $tt_vars{"atom_".lc($type)."_url"} =
     160                           $config->script_name . "?action=rc;format=atom;"
    158161                           . lc($type) . "=" . lc(CGI->escape($2));
    159162    }
     
    648651                     );
    649652
     653  # All edits bob has made to pub pages in the last week in Atom format
     654  $guide->display_feed(
     655                         feed_type => 'atom',
     656                         days      => 7,
     657                         username  => "bob",
     658                         category  => "Pubs",
     659                     );
     660
    650661C<feed_type> is a mandatory parameter. Supported values at present are
    651 "rss".
     662"rss" and "atom".
    652663
    653664As with other methods, the C<return_output> parameter can be used to
     
    694705    if ($feed_type eq 'rss') {
    695706        $output = "Content-Type: application/rdf+xml\n";
    696     } else {
     707    }
     708    elsif ($feed_type eq 'atom') {
     709        $output = "Content-Type: application/atom+xml\n";
     710    }
     711    else {
    697712        croak "Unknown feed type given: $feed_type";
    698713    }
Note: See TracChangeset for help on using the changeset viewer.