pref-prefs: blacklist HEADLINES_SMART_DATE
This commit is contained in:
parent
ef1805f8b7
commit
1dc52ae7b3
|
@ -2190,7 +2190,7 @@
|
||||||
$dt = new DateTime($timestamp, new DateTimeZone('UTC'));
|
$dt = new DateTime($timestamp, new DateTimeZone('UTC'));
|
||||||
$user_timestamp = $dt->format('U') + $user_tz->getOffset($dt);
|
$user_timestamp = $dt->format('U') + $user_tz->getOffset($dt);
|
||||||
|
|
||||||
if (!$no_smart_dt && get_pref($link, 'HEADLINES_SMART_DATE', $owner_uid)) {
|
if (!$no_smart_dt) {
|
||||||
return smart_date_time($link, $user_timestamp,
|
return smart_date_time($link, $user_timestamp,
|
||||||
$user_tz->getOffset($dt), $owner_uid);
|
$user_tz->getOffset($dt), $owner_uid);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -8,7 +8,8 @@
|
||||||
$prefs_blacklist = array("HIDE_FEEDLIST", "SYNC_COUNTERS", "ENABLE_LABELS",
|
$prefs_blacklist = array("HIDE_FEEDLIST", "SYNC_COUNTERS", "ENABLE_LABELS",
|
||||||
"ENABLE_SEARCH_TOOLBAR", "HIDE_READ_FEEDS", "ENABLE_FEED_ICONS",
|
"ENABLE_SEARCH_TOOLBAR", "HIDE_READ_FEEDS", "ENABLE_FEED_ICONS",
|
||||||
"ENABLE_OFFLINE_READING", "EXTENDED_FEEDLIST", "FEEDS_SORT_BY_UNREAD",
|
"ENABLE_OFFLINE_READING", "EXTENDED_FEEDLIST", "FEEDS_SORT_BY_UNREAD",
|
||||||
"OPEN_LINKS_IN_NEW_WINDOW", "USER_STYLESHEET_URL", "ENABLE_FLASH_PLAYER");
|
"OPEN_LINKS_IN_NEW_WINDOW", "USER_STYLESHEET_URL", "ENABLE_FLASH_PLAYER",
|
||||||
|
"HEADLINES_SMART_DATE");
|
||||||
|
|
||||||
$profile_blacklist = array("ALLOW_DUPLICATE_POSTS", "PURGE_OLD_DAYS",
|
$profile_blacklist = array("ALLOW_DUPLICATE_POSTS", "PURGE_OLD_DAYS",
|
||||||
"PURGE_UNREAD_ARTICLES", "DIGEST_ENABLE", "DIGEST_CATCHUP",
|
"PURGE_UNREAD_ARTICLES", "DIGEST_ENABLE", "DIGEST_CATCHUP",
|
||||||
|
|
Loading…
Reference in New Issue