*
*/
+use Friendica\Core\PConfig;
function startpage_install() {
register_hook('home_init', 'addon/startpage/startpage.php', 'startpage_home_init');
if(! local_user())
return;
- $page = get_pconfig(local_user(),'startpage','startpage');
+ $page = PConfig::get(local_user(),'startpage','startpage');
if(strlen($page)) {
$slash = ((strpos($page,'/') === 0) ? true : false);
if(stristr($page,'://'))
if(! local_user())
return;
if($_POST['startpage-submit'])
- set_pconfig(local_user(),'startpage','startpage',strip_tags(trim($_POST['startpage'])));
+ PConfig::set(local_user(),'startpage','startpage',strip_tags(trim($_POST['startpage'])));
}
/* Get the current state of our config variable */
- $page = get_pconfig(local_user(),'startpage','startpage');
+ $page = PConfig::get(local_user(),'startpage','startpage');
/* Add some HTML to the existing form */