From 5b236c6a8113739a012d1e5a552aabb6f9c21751 Mon Sep 17 00:00:00 2001 From: Exile Date: Sun, 17 Aug 2014 16:19:17 +0400 Subject: [PATCH] =?UTF-8?q?Atom=20fix=20=C2=AF\(=C2=B0=5Fo)/=C2=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Без комментариев вообще. --- upload/includes/cron/jobs/update_forums_atom.php | 4 ++-- upload/templates/default/index_map.tpl | 4 ++-- upload/templates/default/viewforum.tpl | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/upload/includes/cron/jobs/update_forums_atom.php b/upload/includes/cron/jobs/update_forums_atom.php index eaf6bc73e..7a517feba 100644 --- a/upload/includes/cron/jobs/update_forums_atom.php +++ b/upload/includes/cron/jobs/update_forums_atom.php @@ -9,14 +9,14 @@ require_once(INC_DIR .'functions_atom.php'); $timecheck = TIMENOW - 600; $forums_data = DB()->fetch_rowset("SELECT forum_id, allow_reg_tracker, forum_name FROM ". BB_FORUMS); -if (!file_exists($bb_cfg['atom']['path'] .'/f/0.atom') && filemtime($bb_cfg['atom']['path'] .'/f/0.atom') <= $timecheck) +if (file_exists($bb_cfg['atom']['path'] .'/f/0.atom') && filemtime($bb_cfg['atom']['path'] .'/f/0.atom') <= $timecheck) { update_forum_feed(0, $forums_data); } foreach ($forums_data as $forum_data) { - if (!file_exists($bb_cfg['atom']['path'] .'/f/'. $forum_data['forum_id'] .'.atom') && filemtime($bb_cfg['atom']['path'] .'/f/'. $forum_data['forum_id'] .'.atom') <= $timecheck) + if (file_exists($bb_cfg['atom']['path'] .'/f/'. $forum_data['forum_id'] .'.atom') && filemtime($bb_cfg['atom']['path'] .'/f/'. $forum_data['forum_id'] .'.atom') <= $timecheck) { update_forum_feed($forum_data['forum_id'], $forum_data); } diff --git a/upload/templates/default/index_map.tpl b/upload/templates/default/index_map.tpl index 37cae539d..cf9c5af1c 100644 --- a/upload/templates/default/index_map.tpl +++ b/upload/templates/default/index_map.tpl @@ -21,10 +21,10 @@ function qs_highlight_found () var a = $('a:first', this); var q = $('#q-search').val().toLowerCase(); if (q != '' && a.text().toLowerCase().indexOf(q) != -1) { - a.html(a.text().replace(q, '' + q + '')); + a.html(a.text().replace(q, '' + q + '')); } else { - a.html(a.text()); + a.html(a.text()); } } function open_feed (f_id) diff --git a/upload/templates/default/viewforum.tpl b/upload/templates/default/viewforum.tpl index a9eef738b..46cd57e38 100644 --- a/upload/templates/default/viewforum.tpl +++ b/upload/templates/default/viewforum.tpl @@ -405,8 +405,8 @@ td.topic_id { cursor: pointer; }   - {L_ATOM_SUBSCRIBE}  |  - {L_SEARCH_SELF}  |  + {FEED_IMG} {L_ATOM_SUBSCRIBE} · + {L_SEARCH_SELF} · {L_DISPLAYING_OPTIONS}