mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02: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
|
@ -12,6 +12,7 @@ use Friendica\Core\Config;
|
|||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Util\Strings;
|
||||
|
||||
function newmemberwidget_install()
|
||||
{
|
||||
|
@ -54,7 +55,7 @@ function newmemberwidget_network_mod_init ($a, $b)
|
|||
function newmemberwidget_addon_admin_post(&$a)
|
||||
{
|
||||
$ft = ((x($_POST, 'freetext')) ? trim($_POST['freetext']) : "");
|
||||
$lsn = ((x($_POST, 'localsupportname')) ? notags(trim($_POST['localsupportname'])) : "");
|
||||
$lsn = ((x($_POST, 'localsupportname')) ? Strings::removeTags(trim($_POST['localsupportname'])) : "");
|
||||
$gs = intval($_POST['linkglobalsupport']);
|
||||
$ls = intval($_POST['linklocalsupport']);
|
||||
Config::set('newmemberwidget', 'freetext', trim($ft));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue