aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Permcats.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-08-25 08:56:34 +0000
committerMario <mario@mariovavti.com>2021-08-25 08:56:34 +0000
commit0081bafab2898074a8293b0ab691add4f7f02544 (patch)
tree863cf4f391b165f24f42b1381eb41f10a4acac03 /Zotlabs/Module/Permcats.php
parent64b59b4358879fb938ab92ece79070910d09543f (diff)
downloadvolse-hubzilla-0081bafab2898074a8293b0ab691add4f7f02544.tar.gz
volse-hubzilla-0081bafab2898074a8293b0ab691add4f7f02544.tar.bz2
volse-hubzilla-0081bafab2898074a8293b0ab691add4f7f02544.zip
more app descriptions
Diffstat (limited to 'Zotlabs/Module/Permcats.php')
-rw-r--r--Zotlabs/Module/Permcats.php18
1 files changed, 8 insertions, 10 deletions
diff --git a/Zotlabs/Module/Permcats.php b/Zotlabs/Module/Permcats.php
index 6a599282c..58566373a 100644
--- a/Zotlabs/Module/Permcats.php
+++ b/Zotlabs/Module/Permcats.php
@@ -40,16 +40,16 @@ class Permcats extends Controller {
}
}
}
-
+
\Zotlabs\Lib\Permcat::update(local_channel(),$name,$pcarr);
Libsync::build_sync_packet();
info( t('Permission category saved.') . EOL);
-
+
return;
}
-
+
function get() {
@@ -59,16 +59,14 @@ class Permcats extends Controller {
if(! Apps::system_app_installed(local_channel(), 'Permission Categories')) {
//Do not display any associated widgets at this point
App::$pdl = '';
-
- $o = '<b>' . t('Permission Categories App') . ' (' . t('Not Installed') . '):</b><br>';
- $o .= t('Create custom connection permission limits');
- return $o;
+ $papp = Apps::get_papp('Permission Categories');
+ return Apps::app_render($papp, 'module');
}
$channel = App::get_channel();
- if(argc() > 1)
- $name = hex2bin(argv(1));
+ if(argc() > 1)
+ $name = hex2bin(argv(1));
if(argc() > 2 && argv(2) === 'drop') {
\Zotlabs\Lib\Permcat::delete(local_channel(),$name);
@@ -130,5 +128,5 @@ class Permcats extends Controller {
));
return $o;
}
-
+
}