View Issue Details

IDProjectCategoryView StatusLast Update
0007925mantisbtbugtrackerpublic2007-05-08 03:42
Reporterseiji Assigned Tograngeway  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformPCOSLinuxOS VersionGentoo Linux
Product Version1.1.0a2 
Fixed in Version1.1.0a3 
Summary0007925: Access level is displayed twice in "login info" if realname is not set
Description

if realname is not set, access level (reporter, viewer ...) is dislayed twice as follows.

"Logged in as: seiji (reporter) - reporter)"

It should be

"Logged in as: seiji (reporter)"

(1.1.0a2 and 1.0.7)

Steps To Reproduce
  1. Set realname to blank.
  2. login
Additional Information

See attached patch file(for CVS)

TagsNo tags attached.
Attached Files
html_api.patch (579 bytes)   
--- core/html_api.php.org	2007-04-29 13:39:43.000000000 +0900
+++ core/html_api.php	2007-04-29 13:40:11.000000000 +0900
@@ -340,7 +340,7 @@
 					}
 				} else {
 					echo lang_get( 'logged_in_as' ), ": <span class=\"italic\">", string_display( $t_username ), "</span> <span class=\"small\">";
-					echo is_blank( $t_realname ) ? "($t_access_level)" : "(", string_display( $t_realname ), " - $t_access_level)";
+					echo is_blank( $t_realname ) ? "($t_access_level)" : "(". string_display( $t_realname ). " - $t_access_level)";
 					echo "</span>";
 				}
 			PRINT '</td>';
html_api.patch (579 bytes)   

Activities

grangeway

grangeway

2007-05-07 13:46

reporter   ~0014437

Patched.