浏览代码

We use color[9] in the error_box but it was not defined in the fallback colors.

BTW we need an sm_init which first of all defines fallback colors, then overrides
those with the user's/default colors. That would make sure that there are always
and everywhere fallback colors, and that incomplete themes would also have gaps
filled. Now that functionality is scattered.
Thijs Kinkhorst 21 年之前
父节点
当前提交
3594a57c4c
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      functions/display_messages.php

+ 3 - 0
functions/display_messages.php

@@ -135,6 +135,7 @@ function error_box($string, $color) {
         $color[4]  = '#FFFFFF';  /* white         Normal Background      */
         $color[4]  = '#FFFFFF';  /* white         Normal Background      */
         $color[7]  = '#0000CC';  /* blue          Links                  */
         $color[7]  = '#0000CC';  /* blue          Links                  */
         $color[8]  = '#000000';  /* black         Normal text            */
         $color[8]  = '#000000';  /* black         Normal text            */
+        $color[9]  = '#ABABAB';  /* mid-gray      Darker version of #0   */
     }
     }
 
 
     $err = _("ERROR");
     $err = _("ERROR");
@@ -168,4 +169,6 @@ function error_box($string, $color) {
    echo '       </table></td></tr>';
    echo '       </table></td></tr>';
    echo '    </table>';
    echo '    </table>';
 }
 }
+
+// vim: et ts=4
 ?>
 ?>