dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b14cde3
)
add __toString() call for User objects, returning User->getName(). Now that we requi...
author
Happy-melon
<happy-melon@users.mediawiki.org>
Fri, 11 Mar 2011 23:42:53 +0000
(23:42 +0000)
committer
Happy-melon
<happy-melon@users.mediawiki.org>
Fri, 11 Mar 2011 23:42:53 +0000
(23:42 +0000)
includes/User.php
patch
|
blob
|
history
diff --git
a/includes/User.php
b/includes/User.php
index
111ed3a
..
5418a0d
100644
(file)
--- a/
includes/User.php
+++ b/
includes/User.php
@@
-203,6
+203,10
@@
class User {
$this->clearInstanceCache( 'defaults' );
}
+ function __toString(){
+ return $this->getName();
+ }
+
/**
* Load the user table data for this object from the source given by mFrom.
*/