page: replace global variables by $Page object
[minimedit.git] / widget / login / list.php
index da4acd20c4b083fe8e10ebbb6295f39d612100dd..31d913044de23292e376502950621a09a789df64 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 $basepath = 'profile';
-if ($Args) $basepath .= '/.tags' . $Args;
+if ($Page->path) $basepath .= '/.tags' . $Page->path;
 $users = glob("$basepath/*/");
 if (!$users) return;
 
@@ -37,7 +37,7 @@ elseif (count($users) > 5) {
 print ">\n";
 
 foreach ($users as $user) {
-       $name = $user->name ?: $user->login;
+       $name = $user->html;
        if ($GLOBALS['User'] and $GLOBALS['User']->admin('user')) {
                $link = '/login/edit/'.$user->login;
                $name = sprintf('<a href="%s">%s</a>', $link, $name);