]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Imap/ImapPlugin.php
Merge branch 'master' into social-master
[quix0rs-gnu-social.git] / plugins / Imap / ImapPlugin.php
index dbaa904c6e5b0efba91fd09f838c0c2606237fdd..ea6eaabef88598ecda07764443efe4126e444ddb 100644 (file)
@@ -71,37 +71,15 @@ 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);
     }
 
-    function onPluginVersion(&$versions)
+    function onPluginVersion(array &$versions)
     {
         $versions[] = array('name' => 'IMAP',
-                            'version' => STATUSNET_VERSION,
+                            'version' => GNUSOCIAL_VERSION,
                             'author' => 'Craig Andrews',
                             'homepage' => 'http://status.net/wiki/Plugin:IMAP',
                             'rawdescription' =>