[geeklog-cvs] Geeklog-1.x/public_html/admin/plugins/calendar index.php, 1.31, 1.32

Dirk Haun dhaun at qs1489.pair.com
Sat Apr 12 16:34:20 EDT 2008


Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin/plugins/calendar
In directory qs1489.pair.com:/tmp/cvs-serv51101/public_html/admin/plugins/calendar

Modified Files:
	index.php 
Log Message:
Fixed deleting events submissions from the Events editor


Index: index.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/plugins/calendar/index.php,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** index.php	27 Jan 2008 15:23:33 -0000	1.31
--- index.php	12 Apr 2008 20:34:18 -0000	1.32
***************
*** 140,143 ****
--- 140,148 ----
          $event_templates->set_var ('delete_option_no_confirmation',
                                     sprintf ($delbutton, ''));
+         if ($mode == 'editsubmission') {
+             $event_templates->set_var('submission_option',
+                 '<input type="hidden" name="type" value="submission"'
+                 . XHTML . '>');
+         }
      } else { // new event
          $A['eid'] = COM_makesid ();
***************
*** 579,583 ****
          $display .= COM_refresh ($_CONF['site_admin_url'] . '/plugins/calendar/index.php');
      } else {
!         $display .= CALENDAR_deleteEvent ($eid);
      }
  } else if (($mode == $LANG_ADMIN['save']) && !empty ($LANG_ADMIN['save'])) {
--- 584,592 ----
          $display .= COM_refresh ($_CONF['site_admin_url'] . '/plugins/calendar/index.php');
      } else {
!         $type = '';
!         if (isset($_POST['type'])) {
!             $type = COM_applyFilter($_POST['type']);
!         }
!         $display .= CALENDAR_deleteEvent($eid, $type);
      }
  } else if (($mode == $LANG_ADMIN['save']) && !empty ($LANG_ADMIN['save'])) {




More information about the geeklog-cvs mailing list