git.shiar.nl
/
sc2-widget
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ignore missing matches records in widget
[sc2-widget]
/
widget.php
diff --git
a/widget.php
b/widget.php
index 463ff67f1fef13c14182736797e4aa493c1a99fe..c99611140d654aca1a66b0add7a697e63d0c7a9b 100644
(file)
--- a/
widget.php
+++ b/
widget.php
@@
-17,7
+17,7
@@
function error($message, $status = 500)
exit;
}
-$request = trim($_SERVER['PATH_INFO'], '/');
+$request = trim($_
GET['clan'] ?? $_
SERVER['PATH_INFO'], '/');
$target = "data/$request.json";
$last = file_exists($target) ? lstat($target)['mtime'] : 0;