mirror of
https://git.code.sf.net/p/quake/website
synced 2025-02-25 21:21:33 +00:00
add a notify at the bottom if the news is cached
This commit is contained in:
parent
231eb79fc2
commit
683674bfcc
2 changed files with 36 additions and 32 deletions
|
@ -10,8 +10,10 @@
|
|||
tableBoxHeader (featureBgColor, featureHeadColor);
|
||||
tableTitle ('Latest News', 1, featureHeadColor);
|
||||
require "news_funcs.php";
|
||||
latestNews ('1 month');
|
||||
$cached = latestNews ('1 month');
|
||||
tableBoxFooter ();
|
||||
if ($cached)
|
||||
echo '<P>A MySQL error occoured. This news is cached and may not be current';
|
||||
?></TD>
|
||||
</TR>
|
||||
<TR vAlign=top>
|
||||
|
|
|
@ -127,8 +127,10 @@
|
|||
mysql_close ($conn);
|
||||
} else {
|
||||
include ('cache.php');
|
||||
return (1);
|
||||
// newsItem ('Now', 'Web Server', '<P>Error: Could not connect to SQL server to fetch news. Please notify the server administrator.');
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
||||
function fetchNewsEntry ($number)
|
||||
|
|
Loading…
Reference in a new issue