diff options
author | zotlabs <mike@macgirvin.com> | 2018-08-22 13:30:16 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-08-22 13:30:16 -0700 |
commit | 6ecd31a715c3d4fb5f2073f376cb9509bc6427d6 (patch) | |
tree | a9c61d76e99197139af0789c8774323e124264d0 /Zotlabs/Widget | |
parent | b25192332ba3b17f1141ff643b3ce2dd4591c528 (diff) | |
download | volse-hubzilla-6ecd31a715c3d4fb5f2073f376cb9509bc6427d6.tar.gz volse-hubzilla-6ecd31a715c3d4fb5f2073f376cb9509bc6427d6.tar.bz2 volse-hubzilla-6ecd31a715c3d4fb5f2073f376cb9509bc6427d6.zip |
tweak archive widget for articles
Diffstat (limited to 'Zotlabs/Widget')
-rw-r--r-- | Zotlabs/Widget/Archive.php | 6 |
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; |