mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +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
|
@ -13,6 +13,7 @@ use Friendica\Core\L10n;
|
|||
use Friendica\Core\PConfig;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Util\Strings;
|
||||
|
||||
function remote_permissions_install() {
|
||||
Addon::registerHook('lockview_content', 'addon/remote_permissions/remote_permissions.php', 'remote_permissions_content');
|
||||
|
@ -206,7 +207,7 @@ function remote_permissions_addon_admin(&$a, &$o){
|
|||
}
|
||||
|
||||
function remote_permissions_addon_admin_post(&$a){
|
||||
$choice = ((x($_POST,'remotepermschoice')) ? notags(trim($_POST['remotepermschoice'])) : '');
|
||||
$choice = ((x($_POST,'remotepermschoice')) ? Strings::removeTags(trim($_POST['remotepermschoice'])) : '');
|
||||
Config::set('remote_perms','global',($choice == 1 ? 1 : 0));
|
||||
info(L10n::t('Settings updated.'). EOL);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue