فهرست منبع

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 سال پیش
والد
کامیت
29ff440043
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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