[CORE] Plugin API now extends a new Module API
This commit is contained in:
@@ -23,18 +23,18 @@ if (!defined('GNUSOCIAL')) { exit(1); }
|
||||
* @package Activity
|
||||
* @maintainer Mikael Nordfeldth <mmn@hethane.se>
|
||||
*/
|
||||
class HTMLPurifierSchemesPlugin extends Plugin
|
||||
class HTMLPurifierSchemesModule extends Module
|
||||
{
|
||||
const PLUGIN_VERSION = '2.0.0';
|
||||
|
||||
public function onPluginVersion(array &$versions)
|
||||
public function onModuleVersion(array &$versions): bool
|
||||
{
|
||||
$versions[] = array('name' => 'HTMLPurifier Schemes',
|
||||
'version' => self::PLUGIN_VERSION,
|
||||
'author' => 'Mikael Nordfeldth',
|
||||
'homepage' => 'https://gnu.io/social',
|
||||
'rawdescription' =>
|
||||
// TRANS: Plugin description.
|
||||
// TRANS: Module description.
|
||||
_m('Additional URI schemes for HTMLPurifier.'));
|
||||
|
||||
return true;
|
@@ -17,7 +17,7 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#. TRANS: Plugin description.
|
||||
#: HTMLPurifierSchemesPlugin.php:41
|
||||
#. TRANS: Module description.
|
||||
#: HTMLPurifierSchemesModule.php:41
|
||||
msgid "Additional URI schemes for HTMLPurifier."
|
||||
msgstr ""
|
||||
|
Reference in New Issue
Block a user