]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Imap/ImapPlugin.php
Avoid CLI printing some PEAR::DB deprecated stuff
[quix0rs-gnu-social.git] / plugins / Imap / ImapPlugin.php
index dbaa904c6e5b0efba91fd09f838c0c2606237fdd..5711951e264f11157c917909ff40b3da37f761bb 100644 (file)
@@ -71,28 +71,6 @@ class ImapPlugin extends Plugin
         return true;
     }
 
-    /**
-     * Load related modules when needed
-     *
-     * @param string $cls Name of the class to be loaded
-     *
-     * @return boolean hook value; true means continue processing, false means stop.
-     */
-    function onAutoload($cls)
-    {
-        $dir = dirname(__FILE__);
-
-        switch ($cls)
-        {
-        case 'ImapManager':
-        case 'IMAPMailHandler':
-            include_once $dir . '/'.strtolower($cls).'.php';
-            return false;
-        default:
-            return true;
-        }
-    }
-
     function onStartQueueDaemonIoManagers(&$classes)
     {
         $classes[] = new ImapManager($this);
@@ -101,7 +79,7 @@ class ImapPlugin extends Plugin
     function onPluginVersion(&$versions)
     {
         $versions[] = array('name' => 'IMAP',
-                            'version' => STATUSNET_VERSION,
+                            'version' => GNUSOCIAL_VERSION,
                             'author' => 'Craig Andrews',
                             'homepage' => 'http://status.net/wiki/Plugin:IMAP',
                             'rawdescription' =>