diff options
author | zotlabs <mike@macgirvin.com> | 2017-12-04 21:18:10 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-12-04 21:18:10 -0800 |
commit | 24d256e253a2a16391e9a5771d2b5bc9578b951d (patch) | |
tree | d99832ad985a012085e45f64d1ce56d174370101 /Zotlabs/Module/Update.php | |
parent | cb39d9435da54239e8e36d2d53877a19c10bab83 (diff) | |
download | volse-hubzilla-24d256e253a2a16391e9a5771d2b5bc9578b951d.tar.gz volse-hubzilla-24d256e253a2a16391e9a5771d2b5bc9578b951d.tar.bz2 volse-hubzilla-24d256e253a2a16391e9a5771d2b5bc9578b951d.zip |
fix mod display and others that require a non-zero profile_uid for updates
Diffstat (limited to 'Zotlabs/Module/Update.php')
-rw-r--r-- | Zotlabs/Module/Update.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Zotlabs/Module/Update.php b/Zotlabs/Module/Update.php index e7470363b..98137c4c2 100644 --- a/Zotlabs/Module/Update.php +++ b/Zotlabs/Module/Update.php @@ -8,6 +8,9 @@ class Update extends \Zotlabs\Web\Controller { $profile_uid = intval($_GET['p']); + if((! $profile_uid) && in_array(argv(1),['display','search','pubstream','home'])) + $profile_uid = (-1); + if(argc() < 2) { killme(); } @@ -24,6 +27,9 @@ class Update extends \Zotlabs\Web\Controller { header("Content-type: text/html"); + \App::$argv = [ argv(1) ]; + \App::$argc = 1; + echo "<!DOCTYPE html><html><body><section>\r\n"; echo $mod->get($profile_uid, $load); echo "</section></body></html>\r\n"; |