X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FRSSCloud%2FRSSCloudPlugin.php;h=0fff0947a288020217dd4c9d56fd39013ed312e6;hb=9dc8250956a25dc7f06f0d81d135b837cfe8281a;hp=144e0ca57d134d519e1608fba217d099553c3310;hpb=12588b1cf73fad7d0a76a29a46ec355150eaa54e;p=quix0rs-gnu-social.git diff --git a/plugins/RSSCloud/RSSCloudPlugin.php b/plugins/RSSCloud/RSSCloudPlugin.php index 144e0ca57d..0fff0947a2 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,7 +198,7 @@ class RSSCloudPlugin extends Plugin return true; } - function onPluginVersion(&$versions) + function onPluginVersion(array &$versions) { $versions[] = array('name' => 'RSSCloud', 'version' => RSSCLOUDPLUGIN_VERSION,