aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Randprof.php
diff options
context:
space:
mode:
authornobody <nobody@zotlabs.com>2021-08-28 01:09:11 -0700
committernobody <nobody@zotlabs.com>2021-08-28 01:09:11 -0700
commit2866c0b1737f571c77731eabb0d60d6660caee3b (patch)
treeef72556613187c611f6b131210621cc4a11a108a /Zotlabs/Module/Randprof.php
parent05152ac8c88711a74e61f75feae2c0a43dd40cc4 (diff)
parent5eaabbdb18b392478b6782fb580f22b3a1e666f2 (diff)
downloadvolse-hubzilla-2866c0b1737f571c77731eabb0d60d6660caee3b.tar.gz
volse-hubzilla-2866c0b1737f571c77731eabb0d60d6660caee3b.tar.bz2
volse-hubzilla-2866c0b1737f571c77731eabb0d60d6660caee3b.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'Zotlabs/Module/Randprof.php')
-rw-r--r--Zotlabs/Module/Randprof.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/Zotlabs/Module/Randprof.php b/Zotlabs/Module/Randprof.php
index c38b07ead..731d3aece 100644
--- a/Zotlabs/Module/Randprof.php
+++ b/Zotlabs/Module/Randprof.php
@@ -15,7 +15,7 @@ class Randprof extends \Zotlabs\Web\Controller {
$x = random_profile();
if($x)
goaway(chanlink_hash($x));
-
+
/** FIXME this doesn't work at the moment as a fallback */
goaway(z_root() . '/profile');
}
@@ -25,13 +25,11 @@ class Randprof extends \Zotlabs\Web\Controller {
if(! Apps::system_app_installed(local_channel(), 'Random Channel')) {
//Do not display any associated widgets at this point
App::$pdl = '';
-
- $o = '<b>' . t('Random Channel App') . ' (' . t('Not Installed') . '):</b><br>';
- $o .= t('Visit a random channel in the $Projectname network');
- return $o;
+ $papp = Apps::get_papp('Random Channel');
+ return Apps::app_render($papp, 'module');
}
}
}
-
+
}