add __toString() call for User objects, returning User->getName(). Now that we requi...
authorHappy-melon <happy-melon@users.mediawiki.org>
Fri, 11 Mar 2011 23:42:53 +0000 (23:42 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Fri, 11 Mar 2011 23:42:53 +0000 (23:42 +0000)
includes/User.php

index 111ed3a..5418a0d 100644 (file)
@@ -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.
         */