nieuws: prefer full names of comment authors
[minimedit.git] / auth.inc.php
index ca34e4f9de909316bcb904955341913f64e6dee0..52cd4c1e29ababbce4ae3729f652617a247935d0 100644 (file)
@@ -27,6 +27,11 @@ class User
                return htmlspecialchars(implode(' & ', explode("\n", $this->rawname)));
        }
 
+       function html()
+       {
+               return $this->name ?: $this->login;
+       }
+
        function admin()
        {
                return @file_exists("{$this->dir}/.admin");