浏览代码

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