login/members: order by full name
[minimedit.git] / auth.inc.php
index 772e256129c89abfbc01710fbd195ee8ba82b8d2..631bf8b06cccb33f6e64bce65d217c29cdb50acf 100644 (file)
@@ -14,10 +14,14 @@ class User
                return $this->$col = $this->$col();  # run method and cache
        }
 
+       function rawname()
+       {
+               return @file_get_contents("{$this->dir}/name.txt");
+       }
+
        function name()
        {
-               $name = @file_get_contents("{$this->dir}/name.txt");
-               return htmlspecialchars(implode(' & ', explode("\n", $name)));
+               return htmlspecialchars(implode(' & ', explode("\n", $this->rawname)));
        }
 
        function admin()