mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
Issue 3873
Replace deprecated functions with new syntax
This commit is contained in:
parent
72474dc2f6
commit
48dcbc6f3f
61 changed files with 1036 additions and 920 deletions
|
@ -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" ' : '');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue