projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not save latitudes and longitudes for empty addresses.
[platal.git]
/
classes
/
user.php
diff --git
a/classes/user.php
b/classes/user.php
index
ab554bc
..
7ede56b
100644
(file)
--- a/
classes/user.php
+++ b/
classes/user.php
@@
-292,6
+292,14
@@
class User extends PlUser
return $this->profile()->fullName($with_promo);
}
return $this->profile()->fullName($with_promo);
}
+ public function shortName($with_promo = false)
+ {
+ if (!$this->hasProfile()) {
+ return $this->full_name;
+ }
+ return $this->profile()->shortName($with_promo);
+ }
+
public function directoryName()
{
if (!$this->hasProfile()) {
public function directoryName()
{
if (!$this->hasProfile()) {
@@
-769,7
+777,7
@@
class User extends PlUser
$this->forlifeEmail(), $newuser->id());
// Reftech new user so its forlifeEmail will be correct.
$this->forlifeEmail(), $newuser->id());
// Reftech new user so its forlifeEmail will be correct.
- $newuser = getSilentWithUID($newuser->id());
+ $newuser =
self::
getSilentWithUID($newuser->id());
}
// Change email used in mailing lists.
}
// Change email used in mailing lists.