aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Archive.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-08-24 14:44:45 +0200
committerMario Vavti <mario@mariovavti.com>2018-08-24 14:44:45 +0200
commitf036c25dca3bbf18b994dff3b32492bef0ff4d50 (patch)
tree508bb52dddcca5af3321f548aad3db30307ea0aa /Zotlabs/Widget/Archive.php
parent7fc4292ed866026552add794d573d521481a0519 (diff)
parent7018da3f127e9d2abdb359516d079fc038a4c2a3 (diff)
downloadvolse-hubzilla-f036c25dca3bbf18b994dff3b32492bef0ff4d50.tar.gz
volse-hubzilla-f036c25dca3bbf18b994dff3b32492bef0ff4d50.tar.bz2
volse-hubzilla-f036c25dca3bbf18b994dff3b32492bef0ff4d50.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'Zotlabs/Widget/Archive.php')
-rw-r--r--Zotlabs/Widget/Archive.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Widget/Archive.php b/Zotlabs/Widget/Archive.php
index c151ca563..9adaac38f 100644
--- a/Zotlabs/Widget/Archive.php
+++ b/Zotlabs/Widget/Archive.php
@@ -22,12 +22,12 @@ class Archive {
return '';
$wall = ((array_key_exists('wall', $arr)) ? intval($arr['wall']) : 0);
+ $wall = ((array_key_exists('articles', $arr)) ? 2 : $wall);
+
$style = ((array_key_exists('style', $arr)) ? $arr['style'] : 'select');
$showend = ((get_pconfig($uid,'system','archive_show_end_date')) ? true : false);
$mindate = get_pconfig($uid,'system','archive_mindate');
- $visible_years = get_pconfig($uid,'system','archive_visible_years');
- if(! $visible_years)
- $visible_years = 5;
+ $visible_years = get_pconfig($uid,'system','archive_visible_years',5);
$url = z_root() . '/' . \App::$cmd;