2016-02-03 13:36:51 +00:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* GNU Social - a federating social network
|
|
|
|
* Copyright (C) 2014, Free Software Foundation, Inc.
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
if (!defined('GNUSOCIAL')) { exit(1); }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @package Activity
|
|
|
|
* @maintainer Mikael Nordfeldth <mmn@hethane.se>
|
|
|
|
*/
|
2019-08-12 15:03:30 +01:00
|
|
|
class HTMLPurifierSchemesModule extends Module
|
2016-02-03 13:36:51 +00:00
|
|
|
{
|
2019-10-30 23:52:14 +00:00
|
|
|
const MODULE_VERSION = '2.0.0';
|
2019-06-03 01:56:52 +01:00
|
|
|
|
2019-08-12 15:03:30 +01:00
|
|
|
public function onModuleVersion(array &$versions): bool
|
2016-02-03 13:36:51 +00:00
|
|
|
{
|
|
|
|
$versions[] = array('name' => 'HTMLPurifier Schemes',
|
2019-10-30 23:52:14 +00:00
|
|
|
'version' => self::MODULE_VERSION,
|
2016-02-03 13:36:51 +00:00
|
|
|
'author' => 'Mikael Nordfeldth',
|
2019-11-21 00:21:22 +00:00
|
|
|
'homepage' => GNUSOCIAL_ENGINE_URL,
|
2016-02-03 13:36:51 +00:00
|
|
|
'rawdescription' =>
|
2019-08-12 15:03:30 +01:00
|
|
|
// TRANS: Module description.
|
2016-02-03 13:36:51 +00:00
|
|
|
_m('Additional URI schemes for HTMLPurifier.'));
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|