git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
page: promote news article class to represent all pages
[minimedit.git]
/
auth.inc.php
diff --git
a/auth.inc.php
b/auth.inc.php
index ca34e4f9de909316bcb904955341913f64e6dee0..52cd4c1e29ababbce4ae3729f652617a247935d0 100644
(file)
--- a/
auth.inc.php
+++ b/
auth.inc.php
@@
-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");