Change plugin to addon

change the use of plugin to addon where appropriate.
This commit is contained in:
Adam Magness 2018-01-17 14:22:38 -05:00
parent 3bad83f24e
commit b86b04a81a
25 changed files with 164 additions and 164 deletions

View file

@ -56,8 +56,8 @@ class App
public $hooks;
public $timezone;
public $interactive = true;
public $plugins;
public $plugins_admin = [];
public $addons;
public $addons_admin = [];
public $apps = [];
public $identities;
public $is_mobile = false;

View file

@ -969,7 +969,7 @@ class GContact
/**
* @brief Fetches users of given GNU Social server
*
* If the "Statistics" plugin is enabled (See http://gstools.org/ for details) we query user data with this.
* If the "Statistics" addon is enabled (See http://gstools.org/ for details) we query user data with this.
*
* @param string $server Server address
* @return void

View file

@ -390,7 +390,7 @@ class User
$photo = avatar_img($email);
}
// unless there is no avatar-plugin loaded
// unless there is no avatar-addon loaded
if (strlen($photo)) {
$photo_failure = false;

View file

@ -89,9 +89,9 @@ class Login extends BaseModule
];
/*
* A plugin indicates successful login by setting 'authenticated' to non-zero value and returning a user record
* Plugins should never set 'authenticated' except to indicate success - as hooks may be chained
* and later plugins should not interfere with an earlier one that succeeded.
* An addon indicates successful login by setting 'authenticated' to non-zero value and returning a user record
* Addons should never set 'authenticated' except to indicate success - as hooks may be chained
* and later addons should not interfere with an earlier one that succeeded.
*/
Addon::callHooks('authenticate', $addon_auth);

View file

@ -759,10 +759,10 @@ class Post extends BaseObject
$qc = $qcomment = null;
/*
* Hmmm, code depending on the presence of a particular plugin?
* Hmmm, code depending on the presence of a particular addon?
* This should be better if done by a hook
*/
if (in_array('qcomment', $a->plugins)) {
if (in_array('qcomment', $a->addons)) {
$qc = ((local_user()) ? PConfig::get(local_user(), 'qcomment', 'words') : null);
$qcomment = (($qc) ? explode("\n", $qc) : null);
}