Atom fix ¯\(°_o)/¯

Без комментариев вообще.
This commit is contained in:
Exile 2014-08-17 16:19:17 +04:00
commit 5b236c6a81
3 changed files with 6 additions and 6 deletions

View file

@ -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);
}

View file

@ -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, '<b style="color:#1515ff">' + q + '</b>'));
a.html(a.text().replace(q, '<b style="color:#1515ff">' + q + '</b>'));
}
else {
a.html(a.text());
a.html(a.text());
}
}
function open_feed (f_id)

View file

@ -405,8 +405,8 @@ td.topic_id { cursor: pointer; }
<td class="small bold nowrap tRight w100">
&nbsp;
<!-- IF LOGGED_IN -->
<a class="small" href="#" onclick="return post2url('feed.php', {mode: 'get_feed_url', type: 'f', id: '{FORUM_ID}'})">{L_ATOM_SUBSCRIBE}</a> &nbsp;<span style="color:#CDCDCD;">|</span>&nbsp;
<a class="small" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a> &nbsp;<span style="color:#CDCDCD;">|</span>&nbsp;
<a class="small" href="#" onclick="return post2url('feed.php', {mode: 'get_feed_url', type: 'f', id: '{FORUM_ID}'})">{FEED_IMG} {L_ATOM_SUBSCRIBE}</a>&nbsp;&#0183;
<a class="small" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a>&nbsp;&#0183;
<a class="menu-root" href="#only-new-options">{L_DISPLAYING_OPTIONS}</a>
<!-- ENDIF / LOGGED_IN -->
</td>