X-Git-Url: https://git.mxchange.org/?p=friendica-addons.git;a=blobdiff_plain;f=qcomment%2Fqcomment.php;h=90826e54117bb2938b903110df4aea6a8e678da9;hp=2c98cba72335fe3be6fbd6c5f2f91178e25acf26;hb=48dcbc6f3fc3edae74e3ea2c823011bfb7c26081;hpb=72474dc2f62f193e3f91c19ad41ce3f158023bbf diff --git a/qcomment/qcomment.php b/qcomment/qcomment.php index 2c98cba7..90826e54 100755 --- a/qcomment/qcomment.php +++ b/qcomment/qcomment.php @@ -20,6 +20,8 @@ * */ +use Friendica\Core\PConfig; + function qcomment_install() { register_hook('plugin_settings', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings'); register_hook('plugin_settings_post', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings_post'); @@ -46,7 +48,7 @@ function qcomment_addon_settings(&$a,&$s) { $a->page['htmlhead'] .= '' . "\r\n"; - $words = get_pconfig(local_user(),'qcomment','words'); + $words = PConfig::get(local_user(),'qcomment','words'); if($words === false) $words = t(':-)') . "\n" . t(':-(') . "\n" . t('lol'); @@ -71,7 +73,7 @@ function qcomment_addon_settings_post(&$a,&$b) { return; if($_POST['qcomment-submit']) { - set_pconfig(local_user(),'qcomment','words',xmlify($_POST['qcomment-words'])); + PConfig::set(local_user(),'qcomment','words',xmlify($_POST['qcomment-words'])); info( t('Quick Comment settings saved.') . EOL); } }