瀏覽代碼

Simplified warnings to text-only

Alois Mahdal 11 年之前
父節點
當前提交
946fc24e9b
共有 1 個檔案被更改,包括 1 行新增4 行删除
  1. 1
    4
      lib/SugarTrail/Template/Condition.pm

+ 1
- 4
lib/SugarTrail/Template/Condition.pm 查看文件

@@ -115,10 +115,7 @@ sub match {
115 115
 sub warn {
116 116
     my $self = shift;
117 117
     my $text = shift;
118
-    push @{$self->{warnings}}, {
119
-        time    => time,
120
-        text    => $text
121
-    };
118
+    push @{$self->{warnings}}, $text;
122 119
 }
123 120
 
124 121
 1;