Jelajahi Sumber

renaming function in order to remove phpdoc error
it is better to have different names for different functions even when they
don't conflict with each other.

tokul 21 tahun lalu
induk
melakukan
29ff440043
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      plugins/calendar/event_edit.php

+ 2 - 2
plugins/calendar/event_edit.php

@@ -103,7 +103,7 @@ elseif (isset($_GET['minute'])) {
 /* got 'em */
 
 // update event info
-function show_event_form() {
+function update_event_form() {
     global $color, $editor_size, $year, $day, $month, $hour, $minute, $calendardata;
 
     $tmparray = $calendardata["$month$day$year"]["$hour$minute"];
@@ -287,7 +287,7 @@ echo html_tag( 'tr', '', '', $color[0] ) .
 if (!isset($updated)){
     //get changes to event
     readcalendardata();
-    show_event_form();
+    update_event_form();
 } else {
     if (!isset($confirmed)){
         //confirm changes