*
*/
+use Friendica\Core\PConfig;
function randplace_install() {
/* Retrieve our personal config setting */
- $active = get_pconfig(local_user(), 'randplace', 'enable');
+ $active = PConfig::get(local_user(), 'randplace', 'enable');
if(! $active)
return;
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']));
}
/* 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" ' : '');
/* provide a submit button */
- $s .= '<div class="settings-submit-wrapper" ><input type="submit" name="randplace-submit" class="settings-submit" value="' . t('Submit') . '" /></div></div>';
+ $s .= '<div class="settings-submit-wrapper" ><input type="submit" name="randplace-submit" class="settings-submit" value="' . t('Save Settings') . '" /></div></div>';
}