avatars: parameter selects user tags
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 28 Jun 2018 22:37:28 +0000 (00:37 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Sat, 7 Jul 2018 11:42:40 +0000 (13:42 +0200)
Users can be linked in profile/.tags/* groups.

avatars.php

index 97e27520be127daae114c32faa3cd1cf68430da6..ad2f8045535c42ad9e90362f3df9a8ab29d2fe0d 100644 (file)
@@ -1,5 +1,7 @@
 <?php
-$users = glob("profile/*");
+$basepath = 'profile';
+if ($Args) $basepath .= '/.tags' . $Args;
+$users = glob("$basepath/*/");
 if (!$users) return;
 
 print '<ul class="gallery cat">';