*/
use Friendica\Core\Config;
+use Friendica\Core\PConfig;
+use Friendica\Database\DBM;
/**
* @brief Two-level sort for timezones.
function dob($dob) {
list($year,$month,$day) = sscanf($dob,'%4d-%2d-%2d');
- $f = get_config('system', 'birthday_input_format');
+ $f = Config::get('system', 'birthday_input_format');
if (! $f) {
$f = 'ymd';
}
function datetimesel($format, $min, $max, $default, $label, $id = 'datetimepicker', $pickdate = true, $picktime = true, $minfrom = '', $maxfrom = '', $required = false) {
// First day of the week (0 = Sunday)
- $firstDay = get_pconfig(local_user(), 'system', 'first_day_of_week');
- if ($firstDay === false) {
- $firstDay=0;
- }
+ $firstDay = PConfig::get(local_user(), 'system', 'first_day_of_week', 0);
$lang = substr(get_browser_language(), 0, 2);
// In-network birthdays are handled within local_delivery
$r = q("SELECT * FROM `contact` WHERE `bd` != '' AND `bd` > '0001-01-01' AND SUBSTRING(`bd`, 1, 4) != `bdyear` ");
- if (dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
foreach ($r as $rr) {
logger('update_contact_birthday: ' . $rr['bd']);
dbesc(datetime_convert('UTC','UTC', $nextbd)),
dbesc('birthday'));
- if (dbm::is_result($s)) {
+ if (DBM::is_result($s)) {
continue;
}