Files
core/Zotlabs/Module/Permcat.php
Harald Eilertsen ac8c80ddbe Fix incorrect module imports.
When importing modules with use statements, they always require the
fully qualified module name. Iow, there's no need to prefix them with an
extra backslash.

Ref: https://www.php.net/manual/en/language.namespaces.importing.php
2024-11-09 08:45:45 +01:00

26 lines
366 B
PHP

<?php
namespace Zotlabs\Module;
use Zotlabs\Lib as Zlib;
class Permcat extends \Zotlabs\Web\Controller {
private $permcats = [];
public function init() {
if(! local_channel())
return;
$permcat = new Zlib\Permcat(local_channel());
if(argc() > 1)
json_return_and_die($permcat->fetch(argv(1)));
json_return_and_die($permcat->listing());
}
}