Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_weblogping
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10712/plugins/serendipity_event_weblogping
Modified Files:
serendipity_event_weblogping.php
Log Message:
- Revert Jannis' popup patch
Index: serendipity_event_weblogping.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- serendipity_event_weblogping.php 18 Oct 2004 18:22:10 -0000 1.10
+++ serendipity_event_weblogping.php 20 Oct 2004 16:27:26 -0000 1.11
@@ -153,14 +153,14 @@
foreach($this->services AS $index => $service) {
// Detect if the current checkbox needs to be saved. We use the field chk_timestamp to see,
// if the form has already been submitted and individual changes shall be preserved
- $selected = (($serendipity['POST']['chk_timestamp'] && $serendipity['POST']['announce_entries][' . $service['name']]) || (!isset($serendipity['POST']['chk_timestamp']) && $this->get_config($service['name']) == 'true') ? 'checked="checked"' : '');
+ $selected = (($serendipity['POST']['chk_timestamp'] && $serendipity['POST']['announce_entries_' . $service['name']]) || (!isset($serendipity['POST']['chk_timestamp']) && $this->get_config($service['name']) == 'true') ? 'checked="checked"' : '');
$onclick = '';
if (!empty($service['supersedes'])) {
$onclick = 'onclick="';
$supersedes = explode(', ', $service['supersedes']);
foreach($supersedes AS $sid => $servicename) {
- $onclick .= 'document.getElementById(\'serendipity[announce_entries][' . $servicename . ']\').checked = false; ';
+ $onclick .= 'document.getElementById(\'serendipity[announce_entries_' . $servicename . ']\').checked = false; ';
}
$onclick .= '"';
}
@@ -168,8 +168,8 @@
$title = sprintf(PLUGIN_EVENT_WEBLOGPING_SENDINGPING, $service['name'])
. (!empty($service['supersedes']) ? ' ' . sprintf(PLUGIN_EVENT_WEBLOGPING_SUPERSEDES, $service['supersedes']) : '');
?>
- <input <?php echo $onclick; ?> style="margin: 0px; padding: 0px; vertical-align: bottom;" type="checkbox" name="serendipity[announce_entries][<?php echo $service['name']; ?>]" id="serendipity[announce_entries][<?php echo $service['name']; ?>]" value="true" <?php echo $selected; ?> />
- <label title="<?php echo $title; ?>" style="vertical-align: bottom; margin: 0px; padding: 0px;" for="serendipity[announce_entries][<?php echo $service['name']; ?>]"> <?php echo $service['name']; ?> </label><br />
+ <input <?php echo $onclick; ?> style="margin: 0px; padding: 0px; vertical-align: bottom;" type="checkbox" name="serendipity[announce_entries_<?php echo $service['name']; ?>]" id="serendipity[announce_entries_<?php echo $service['name']; ?>]" value="true" <?php echo $selected; ?> />
+ <label title="<?php echo $title; ?>" style="vertical-align: bottom; margin: 0px; padding: 0px;" for="serendipity[announce_entries_<?php echo $service['name']; ?>]"> <?php echo $service['name']; ?> </label><br />
<?php
}
?>
@@ -181,17 +181,17 @@
case 'backend_publish':
// First cycle through list of services to remove superseding services which may have been checked
foreach ($this->services as $index => $service) {
- if (!empty($service['supersedes']) && isset($serendipity['POST']['announce_entries][' . $service['name']])) {
+ if (!empty($service['supersedes']) && isset($serendipity['POST']['announce_entries_' . $service['name']])) {
$supersedes = explode(', ', $service['supersedes']);
foreach($supersedes AS $sid => $servicename) {
// A service has been checked that is superseded by another checked meta-service. Remove that service from the list of services to be ping'd
- unset($serendipity['POST']['announce_entries][' . $servicename]);
+ unset($serendipity['POST']['announce_entries_' . $servicename]);
}
}
}
foreach ($this->services as $index => $service) {
- if (isset($serendipity['GET']['announce_entries'][$service['name']])) {
+ if (isset($serendipity['POST']['announce_entries_' . $service['name']])) {
printf(PLUGIN_EVENT_WEBLOGPING_SENDINGPING . '...<br />', $service['host']);
flush();
|