mirror of
https://github.com/friendica/friendica
synced 2025-04-27 06:30:12 +00:00
disable archive widget for PHP < 5.3
This commit is contained in:
parent
a424fecdae
commit
d908c9dd71
3 changed files with 48 additions and 32 deletions
|
@ -3436,6 +3436,18 @@ function posted_dates($uid,$wall) {
|
|||
|
||||
function posted_date_widget($url,$uid,$wall) {
|
||||
$o = '';
|
||||
|
||||
// "first day of " constructs were added in php 5.3
|
||||
// TODO: emulate posted_dates() logic for prior releases
|
||||
|
||||
if(version_compare(PHP_VERSION, '5.3.0') < 0)
|
||||
return $o;
|
||||
|
||||
// For former Facebook folks that left because of "timeline"
|
||||
|
||||
if($wall && intval(get_pconfig($uid,'system','no_wall_archive_widget')))
|
||||
return $o;
|
||||
|
||||
$ret = posted_dates($uid,$wall);
|
||||
if(! count($ret))
|
||||
return $o;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue