Changeset 58
- Timestamp:
- 04/26/05 21:00:20 (4 years ago)
- Location:
- update-n-ping/trunk
- Files:
-
- 1 added
- 2 modified
-
README.txt (added)
-
plugins/update-n-ping/config.cgi (modified) (3 diffs)
-
plugins/update-n-ping/plugin.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
update-n-ping/trunk/plugins/update-n-ping/config.cgi
r55 r58 48 48 49 49 my $author = $app->{author}; 50 return $app->error("You cannot edit the settings for Update_n_Ping")50 return $app->error("You cannot edit the settings for " . $PLUGIN_NAME) 51 51 unless $author->can_create_blog; 52 53 $app->set_language($author->preferred_language) 54 if $author && $author->preferred_language; 55 $app->{breadcrumbs} = [ { bc_name => $app->translate('Main Menu'), 56 bc_uri => $app->mt_uri } ]; 52 57 53 58 require MT::Plugin; … … 55 60 56 61 defined($param{enabled} = $plugin->get_config_value('enabled')) 57 or $param{enabled} = 1;62 or $param{enabled} = 1; 58 63 defined($param{limit_entries} = $plugin->get_config_value('limit_entries')) 59 or $param{limit_entries} = 15;64 or $param{limit_entries} = 15; 60 65 my $t = $plugin->get_config_value('ping_urls'); 61 66 $param{ping_urls} = (defined $t && ref($t) eq 'ARRAY' && @$t) ? 62 join "\r\n", @$t : '';67 join "\r\n", @$t : ''; 63 68 64 $app->add_breadcrumb( 'Update-n-Ping Plugin');69 $app->add_breadcrumb($PLUGIN_NAME); 65 70 $app->build_page('update-n-ping.tmpl', \%param); 66 71 } … … 68 73 sub save_form { 69 74 my $app = shift; 70 my $auth = $app->{author};71 75 my $q = $app->{query}; 72 76 my $author = $app->{author}; 73 return $app->error("You cannot edit the settings for Nofollow")77 return $app->error("You cannot edit the settings for " . $PLUGIN_NAME) 74 78 unless $author->can_create_blog; 75 79 $app->validate_magic() or return; -
update-n-ping/trunk/plugins/update-n-ping/plugin.pl
r57 r58 8 8 # Copyright (c) 2005 Hirotaka Ogawa 9 9 10 package MT::Plugin::Update_n_Ping; 10 11 use strict; 11 12 use vars qw($PING_URLS $LIMIT_ENTRIES); … … 24 25 $plugin->description("Send 'update pings' when updating entries"); 25 26 $plugin->doc_link("http://as-is.net/hacks/2005/02/update_n_ping_plugin.html"); 26 $plugin->config_link("config.cgi") ;27 $plugin->config_link("config.cgi") if MT->version_number >= 3.16; 27 28 MT->add_plugin($plugin); 28 29 };
![(please configure the [header_logo] section in trac.ini)](/public/chrome/common/trac_banner.png)