aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Randprof.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-08-26 10:28:38 +0000
committerMario <mario@mariovavti.com>2021-08-26 10:28:38 +0000
commita68b5f9de4a17ac247c726cebcdf1a3ec52b7de1 (patch)
treef12cb0d5abe944d7dae437d481f3834e63b30423 /Zotlabs/Module/Randprof.php
parentd5bf42faf08e8017d7e98c7ee7d23f898e8f9ff4 (diff)
downloadvolse-hubzilla-a68b5f9de4a17ac247c726cebcdf1a3ec52b7de1.tar.gz
volse-hubzilla-a68b5f9de4a17ac247c726cebcdf1a3ec52b7de1.tar.bz2
volse-hubzilla-a68b5f9de4a17ac247c726cebcdf1a3ec52b7de1.zip
more app descriptions
Diffstat (limited to 'Zotlabs/Module/Randprof.php')
-rw-r--r--Zotlabs/Module/Randprof.php14
1 files changed, 6 insertions, 8 deletions
diff --git a/Zotlabs/Module/Randprof.php b/Zotlabs/Module/Randprof.php
index c38b07ead..1753af4c9 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');
}
@@ -23,15 +23,13 @@ class Randprof extends \Zotlabs\Web\Controller {
function get() {
if(local_channel()) {
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;
+ //Do not display any associated widgets at this point
+ App::$pdl = '';
+ $papp = Apps::get_papp('Random Channel');
+ return Apps::app_render($papp, 'module');
}
}
}
-
+
}