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
|
@ -18,6 +18,7 @@ use Friendica\Core\PConfig;
|
|||
use Friendica\Core\Protocol;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Util\Strings;
|
||||
|
||||
function ifttt_install()
|
||||
{
|
||||
|
@ -50,7 +51,7 @@ function ifttt_settings(App $a, &$s)
|
|||
$key = PConfig::get(local_user(), 'ifttt', 'key');
|
||||
|
||||
if (!$key) {
|
||||
$key = random_string(20);
|
||||
$key = Strings::getRandomHex(20);
|
||||
PConfig::set(local_user(), 'ifttt', 'key', $key);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue