From: Mikael Nordfeldth Date: Wed, 22 Apr 2015 16:41:54 +0000 (+0200) Subject: minor coding fixes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0a0455b8d24d5dd068756418e4173925a9101e0b;p=quix0rs-gnu-social.git minor coding fixes --- diff --git a/plugins/InfiniteScroll/InfiniteScrollPlugin.php b/plugins/InfiniteScroll/InfiniteScrollPlugin.php index 44c5c5e880..986ba36075 100644 --- a/plugins/InfiniteScroll/InfiniteScrollPlugin.php +++ b/plugins/InfiniteScroll/InfiniteScrollPlugin.php @@ -27,21 +27,13 @@ * @link http://status.net/ */ -if (!defined('STATUSNET') && !defined('LACONICA')) { - exit(1); -} +if (!defined('GNUSOCIAL')) { exit(1); } class InfiniteScrollPlugin extends Plugin { - public $on_next_only = false; - function __construct() - { - parent::__construct(); - } - - function onEndShowScripts($action) + function onEndShowScripts(Action $action) { $action->inlineScript('var infinite_scroll_on_next_only = ' . ($this->on_next_only?'true':'false') . ';'); $action->inlineScript('var ajax_loader_url = "' . ($this->path('ajax-loader.gif')) . '";'); @@ -49,7 +41,7 @@ class InfiniteScrollPlugin extends Plugin $action->script($this->path('infinitescroll.js')); } - function onPluginVersion(&$versions) + function onPluginVersion(array &$versions) { $versions[] = array('name' => 'InfiniteScroll', 'version' => GNUSOCIAL_VERSION,