projects
/
infodrom.org
/
service.infodrom.org
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8fd38a
)
Only offer yearly overview graphs for years for which graphs exist
author
Joey Schulze
<joey@infodrom.org>
Wed, 9 Jul 2008 09:21:38 +0000
(09:21 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Wed, 9 Jul 2008 09:21:38 +0000
(09:21 +0000)
src/Infodrom/webstats/submenu.inc
patch
|
blob
|
history
diff --git
a/src/Infodrom/webstats/submenu.inc
b/src/Infodrom/webstats/submenu.inc
index
4681816
..
e9fd850
100644
(file)
--- a/
src/Infodrom/webstats/submenu.inc
+++ b/
src/Infodrom/webstats/submenu.inc
@@
-22,6
+22,8
@@
<?
if (!empty($site)) {
for ($anno = $minyear; $anno <= $maxyear; $anno++) {
+ $graphs = glob(sprintf('%s/access-%04d-*.png', $site, $anno));
+ if (count($graphs))
printf (' <a href="view.php?type=%s&site=%s&year=%04d">%04d</a><br>',
$type, urlencode($site), $anno, $anno);
}