ItemContent::user_name(EzcEnv & env) changed to ItemContent::user(morm::ModelWrapper ** model_wrapper) and we return a User class
ItemContent::group_name(EzcEnv & env) changed to ItemContent::group(morm::ModelWrapper ** model_wrapper) and we return a Group class added ItemContent::display_user_name(EzcEnv & env) some functions in templates/item.cpp moved to Item
This commit is contained in:
@@ -74,14 +74,6 @@ void print_hour_min(Info & i, time_t time);
|
||||
void print_date_nice(Info & i, const pt::Date & date);
|
||||
|
||||
|
||||
/*
|
||||
print a user name -- it is trying to use 'display_name' from user's admin env
|
||||
if it not find it or if the 'display_name' is all white (consists of all white characters)
|
||||
then the login name is printed
|
||||
*/
|
||||
void print_user_name(Info & i, User & user);
|
||||
|
||||
|
||||
|
||||
/*
|
||||
puser can be null -- in such a case guest_name is used
|
||||
|
||||
Reference in New Issue
Block a user