瀏覽代碼

Update documentation

stekkel 19 年之前
父節點
當前提交
0ee5d97177
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      class/error.class.php

+ 4 - 2
class/error.class.php

@@ -63,7 +63,9 @@ class ErrorHandler {
     }
     }
 
 
     /**
     /**
-     * Sets the error template
+     * Store errors generated in a previous script but couldn't be displayed
+     * due to a header redirect. This requires storing of aDelayedErrors in the session
+     * @param array $aDelayedErrors array with errors stored in the $this->aErrors format.
      * @since 1.5.1
      * @since 1.5.1
      */
      */
     function AssignDelayedErrors(&$aDelayedErrors) {
     function AssignDelayedErrors(&$aDelayedErrors) {
@@ -194,7 +196,7 @@ class ErrorHandler {
         // Show the error immediate in case of fatal errors
         // Show the error immediate in case of fatal errors
         if ($iType == SQM_ERROR) {
         if ($iType == SQM_ERROR) {
             if (!$this->header_sent) {
             if (!$this->header_sent) {
-                // replace this with template that can be assigned
+                // TODO replace this with template that can be assigned
                 displayHtmlHeader(_("Error"),'',false);
                 displayHtmlHeader(_("Error"),'',false);
             }
             }
             $this->DisplayErrors();
             $this->DisplayErrors();