X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FImap%2FImapPlugin.php;h=ea6eaabef88598ecda07764443efe4126e444ddb;hb=f2bfcdc2c1d7bc4634bb06285380884a57075759;hp=dbaa904c6e5b0efba91fd09f838c0c2606237fdd;hpb=12588b1cf73fad7d0a76a29a46ec355150eaa54e;p=quix0rs-gnu-social.git diff --git a/plugins/Imap/ImapPlugin.php b/plugins/Imap/ImapPlugin.php index dbaa904c6e..ea6eaabef8 100644 --- a/plugins/Imap/ImapPlugin.php +++ b/plugins/Imap/ImapPlugin.php @@ -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' =>