X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FRSSCloud%2FRSSCloudPlugin.php;h=3a8a83749c571dab899f4f96e070f3ba19304ec1;hb=005b4c8dd1a76d254be096dd5819587ebf59f4fa;hp=144e0ca57d134d519e1608fba217d099553c3310;hpb=25198a8d4cee5b2182f1ecb99192a4108a01afa4;p=quix0rs-gnu-social.git diff --git a/plugins/RSSCloud/RSSCloudPlugin.php b/plugins/RSSCloud/RSSCloudPlugin.php index 144e0ca57d..3a8a83749c 100644 --- a/plugins/RSSCloud/RSSCloudPlugin.php +++ b/plugins/RSSCloud/RSSCloudPlugin.php @@ -115,38 +115,6 @@ class RSSCloudPlugin extends Plugin return true; } - /** - * Automatically load the actions and libraries used by - * the RSSCloud plugin - * - * @param Class $cls the class - * - * @return boolean hook return - * - */ - function onAutoload($cls) - { - switch ($cls) - { - case 'RSSCloudSubscription': - include_once INSTALLDIR . '/plugins/RSSCloud/RSSCloudSubscription.php'; - return false; - case 'RSSCloudNotifier': - include_once INSTALLDIR . '/plugins/RSSCloud/RSSCloudNotifier.php'; - return false; - case 'RSSCloudQueueHandler': - include_once INSTALLDIR . '/plugins/RSSCloud/RSSCloudQueueHandler.php'; - return false; - case 'RSSCloudRequestNotifyAction': - case 'LoggingAggregatorAction': - include_once INSTALLDIR . '/plugins/RSSCloud/' . - mb_substr($cls, 0, -6) . '.php'; - return false; - default: - return true; - } - } - /** * Add a element to the RSS feed (after the rss * element is started). @@ -207,7 +175,7 @@ class RSSCloudPlugin extends Plugin array( 'fields' => array( 'subscribed' => array('type' => 'int', 'not null' => true), - 'url' => array('type' => 'varchar', 'length' => '255', 'not null' => true), + 'url' => array('type' => 'varchar', 'length' => '191', 'not null' => true), 'failures' => array('type' => 'int', 'not null' => true, 'default' => 0), 'created' => array('type' => 'datetime', 'not null' => true), 'modified' => array('type' => 'timestamp', 'not null' => true), @@ -230,12 +198,12 @@ class RSSCloudPlugin extends Plugin return true; } - function onPluginVersion(&$versions) + function onPluginVersion(array &$versions) { $versions[] = array('name' => 'RSSCloud', 'version' => RSSCLOUDPLUGIN_VERSION, 'author' => 'Zach Copley', - 'homepage' => 'http://status.net/wiki/Plugin:RSSCloud', + 'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/RSSCloud', 'rawdescription' => // TRANS: Plugin description. _m('The RSSCloud plugin enables your StatusNet instance to publish ' .