Adds a check on Google Apps accounts in checkdb.php.
[platal.git] / classes / mmlist.php
index 1afce03..a16b1c6 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2007 Polytechnique.org                              *
+ *  Copyright (C) 2003-2008 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
 
 class MMList extends XmlrpcClient
 {
-    function __construct($uid, $pass, $fqdn = null)
+    public function __construct($uid, $pass, $fqdn = null)
     {
         global $globals;
 
         $dom = is_null($fqdn) ? $globals->mail->domain : $fqdn;
         $url = "http://$uid:$pass@{$globals->lists->rpchost}:{$globals->lists->rpcport}/$dom";
         parent::__construct($url);
-    }
-
-    function __call($method, $args)
-    {
-        return parent::__call($method, $args);
+        if ($globals->debug & DEBUG_BT) {
+            $this->bt = new PlBacktrace('MMList');
+        }
     }
 }
 
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
 ?>