Issue 3873

Replace deprecated functions with new syntax
This commit is contained in:
Adam Magness 2017-11-06 18:55:24 -05:00
parent 72474dc2f6
commit 48dcbc6f3f
61 changed files with 1036 additions and 920 deletions

View file

@ -1,5 +1,7 @@
<?php
use Friendica\Core\PConfig;
abstract class wdcal_local
{
@ -34,7 +36,7 @@ abstract class wdcal_local
* @return wdcal_local
*/
static function getInstanceByUser($uid = 0) {
$dateformat = get_pconfig($uid, "dav", "dateformat");
$dateformat = PConfig::get($uid, "dav", "dateformat");
$format = self::getInstance($dateformat);
if ($format == null) $format = self::getInstance(self::LOCAL_US);
return $format;