]> git.mxchange.org Git - friendica-addons.git/blobdiff - randplace/randplace.php
Issue 3873
[friendica-addons.git] / randplace / randplace.php
index 27589b1ceceb756ac52e144254e892b17b802bf0..96e5d3b2a443772120d42d5bbd3e23a4a4f4006f 100755 (executable)
@@ -19,6 +19,7 @@
  *
  */
 
+use Friendica\Core\PConfig;
 
 function randplace_install() {
 
@@ -90,7 +91,7 @@ function randplace_post_hook($a, &$item) {
 
        /* Retrieve our personal config setting */
 
-       $active = get_pconfig(local_user(), 'randplace', 'enable');
+       $active = PConfig::get(local_user(), 'randplace', 'enable');
 
        if(! $active)
                return;
@@ -135,7 +136,7 @@ function randplace_settings_post($a,$post) {
        if(! local_user())
                return;
        if($_POST['randplace-submit'])
-               set_pconfig(local_user(),'randplace','enable',intval($_POST['randplace']));
+               PConfig::set(local_user(),'randplace','enable',intval($_POST['randplace']));
 }
 
 
@@ -159,7 +160,7 @@ function randplace_settings(&$a,&$s) {
 
        /* Get the current state of our config variable */
 
-       $enabled = get_pconfig(local_user(),'randplace','enable');
+       $enabled = PConfig::get(local_user(),'randplace','enable');
 
        $checked = (($enabled) ? ' checked="checked" ' : '');