mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-11 19:08:49 +00:00
Functions moved to Strings class
implement functions from Strings class
This commit is contained in:
parent
1746d0814d
commit
1ac32c622e
22 changed files with 80 additions and 58 deletions
|
@ -14,6 +14,7 @@ use Friendica\Core\L10n;
|
|||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Util\Proxy as ProxyUtils;
|
||||
use Friendica\Util\Strings;
|
||||
|
||||
function impressum_install() {
|
||||
Addon::registerHook('load_config', 'addon/impressum/impressum.php', 'impressum_load_config');
|
||||
|
@ -86,11 +87,11 @@ function impressum_show($a,&$b) {
|
|||
}
|
||||
|
||||
function impressum_addon_admin_post (&$a) {
|
||||
$owner = ((x($_POST, 'owner')) ? notags(trim($_POST['owner'])) : '');
|
||||
$ownerprofile = ((x($_POST, 'ownerprofile')) ? notags(trim($_POST['ownerprofile'])) : '');
|
||||
$owner = ((x($_POST, 'owner')) ? Strings::removeTags(trim($_POST['owner'])) : '');
|
||||
$ownerprofile = ((x($_POST, 'ownerprofile')) ? Strings::removeTags(trim($_POST['ownerprofile'])) : '');
|
||||
$postal = ((x($_POST, 'postal')) ? (trim($_POST['postal'])) : '');
|
||||
$notes = ((x($_POST, 'notes')) ? (trim($_POST['notes'])) : '');
|
||||
$email = ((x($_POST, 'email')) ? notags(trim($_POST['email'])) : '');
|
||||
$email = ((x($_POST, 'email')) ? Strings::removeTags(trim($_POST['email'])) : '');
|
||||
$footer_text = ((x($_POST, 'footer_text')) ? (trim($_POST['footer_text'])) : '');
|
||||
Config::set('impressum','owner',strip_tags($owner));
|
||||
Config::set('impressum','ownerprofile',strip_tags($ownerprofile));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue