Functions moved to Strings class
implement functions from Strings class
This commit is contained in:
@@ -12,6 +12,7 @@ use Friendica\Core\L10n;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Util\Network;
|
||||
use Friendica\Util\Strings;
|
||||
|
||||
function geocoordinates_install()
|
||||
{
|
||||
@@ -99,10 +100,10 @@ function geocoordinates_addon_admin(&$a, &$o)
|
||||
|
||||
function geocoordinates_addon_admin_post(&$a)
|
||||
{
|
||||
$api_key = ((x($_POST, 'api_key')) ? notags(trim($_POST['api_key'])) : '');
|
||||
$api_key = ((x($_POST, 'api_key')) ? Strings::removeTags(trim($_POST['api_key'])) : '');
|
||||
Config::set('geocoordinates', 'api_key', $api_key);
|
||||
|
||||
$language = ((x($_POST, 'language')) ? notags(trim($_POST['language'])) : '');
|
||||
$language = ((x($_POST, 'language')) ? Strings::removeTags(trim($_POST['language'])) : '');
|
||||
Config::set('geocoordinates', 'language', $language);
|
||||
info(L10n::t('Settings updated.'). EOL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user