summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-12-13 15:02:19 +0100
committerAndrew Dolgov <[email protected]>2008-12-13 15:02:19 +0100
commit1b74062fc554dcd51a680e30c5f9fbd4b4332225 (patch)
tree5fb72963c51bf6c1bd5fd47a487ffe1426258f3d /modules
parent44d0e7742b05a43b69e3296596d581f4e5d825dc (diff)
mark date filters with unparsable reg_exp in filter display
Diffstat (limited to 'modules')
-rw-r--r--modules/pref-filters.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/modules/pref-filters.php b/modules/pref-filters.php
index 777e9ba81..d0e12f31f 100644
--- a/modules/pref-filters.php
+++ b/modules/pref-filters.php
@@ -316,6 +316,7 @@
enabled,
inverse,
feed_id,
+ filter_type,
ttrss_filter_actions.description AS action_description,
ttrss_feeds.title AS feed_title,
ttrss_filter_actions.name AS action_name,
@@ -417,16 +418,21 @@
$onclick = "onclick='editFilter($filter_id)' title='".__('Click to edit')."'";
- print "<td $onclick>" . $line["reg_exp"] . "</td>";
- print "<td $onclick>" . $line["feed_title"] . "</td>";
+ if ($line["filter_type"] == 5 && !strtotime($line["reg_exp"])) {
+ $line["reg_exp"] = "<span class=\"filterDateError\">" .
+ $line["reg_exp"] . "</span>";
+ }
$inverse_label = "";
if ($inverse) {
$inverse_label = " <span class='insensitive'>".__('(Inverse)')."</span>";
}
+
+ print "<td $onclick>" . $line["reg_exp"] . "$inverse_label</td>";
+ print "<td $onclick>" . $line["feed_title"] . "</td>";
- print "<td $onclick>" . $line["filter_type_descr"] . "$inverse_label</td>";
+ print "<td $onclick>" . $line["filter_type_descr"] . "</td>";
print "<td $onclick>" . $line["action_param"] . "</td>";
print "</tr>";