Changeset 81

Show
Ignore:
Timestamp:
06/13/05 17:10:12 (4 years ago)
Author:
ogawa
Message:

Fix for sending Update-pings via XMLRPC or Atom API.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • update-n-ping/trunk/plugins/update-n-ping/plugin.pl

    r58 r81  
    11# A plugin for sending "update pings" when updating entries 
    22# 
    3 # Release 0.10 (Apr 25, 2005) 
     3# Release 0.11 (Jun 10, 2005) 
    44# 
    55# This software is provided as-is. You may use it for commercial or  
     
    2323    $plugin = new MT::Plugin(); 
    2424    $plugin->name("Update-n-Ping Plugin"); 
    25     $plugin->description("Send 'update pings' when updating entries"); 
     25    $plugin->description("Send 'update pings' when updating entries. Version 0.11"); 
    2626    $plugin->doc_link("http://as-is.net/hacks/2005/02/update_n_ping_plugin.html"); 
    2727    $plugin->config_link("config.cgi") if MT->version_number >= 3.16; 
     
    3030 
    3131if (MT->can('add_callback')) { 
    32     MT->add_callback('AppPostEntrySave', 10, "Send 'update pings' when updating entries", \&update_n_ping); 
     32    my $mt = MT->instance; 
     33    MT->add_callback((ref $mt eq 'MT::App::CMS' ? 'AppPostEntrySave' : 'MT::Entry::post_save'), 
     34                     10, $plugin, \&update_n_ping); 
    3335} 
    3436