Fixes direct references to abstrat PlUser methods.
authorVincent Zanotti <vincent.zanotti@polytechnique.org>
Mon, 16 Jun 2008 01:08:55 +0000 (03:08 +0200)
committerVincent Zanotti <vincent.zanotti@polytechnique.org>
Mon, 16 Jun 2008 01:42:31 +0000 (03:42 +0200)
Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
classes/pluser.php

index 4beee0a..1454884 100644 (file)
@@ -99,7 +99,7 @@ abstract class PlUser
     public static function getWithValues($login, $values, $callback = false)
     {
         if (!$callback) {
-            $callback = array(__CLASS__, '_default_user_callback');
+            $callback = array('User', '_default_user_callback');
         }
 
         try {
@@ -112,7 +112,7 @@ abstract class PlUser
     // Alias on get() with the silent callback.
     public static function getSilent($login)
     {
-        return User::getWithValues($login, array(), array(__CLASS__, '_silent_user_callback'));
+        return User::getWithValues($login, array(), array('User', '_silent_user_callback'));
     }
 
     // Returns the forlife emails for @p members. If @p strict mode is enabled,