remove webinterface

This commit is contained in:
Dennis Eichhorn 2020-11-25 01:00:26 +01:00
parent 4bce325386
commit 8144a3d81e
3 changed files with 3 additions and 3 deletions

View File

@ -188,7 +188,7 @@ final class BackendController extends Controller
$view->setTemplate('/Modules/Knowledgebase/Theme/Backend/wiki-category-list');
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1005901001, $request, $response));
$list = WikiCategoryMapper::getByApp($app, 2);
$list = WikiCategoryMapper::withConditional('language', $response->getLanguage())::getByApp($app, 2);
$view->setData('categories', $list);
return $view;

View File

@ -25,7 +25,7 @@ use phpOMS\Module\WebInterface;
* @link https://orange-management.org
* @since 1.0.0
*/
class Controller extends ModuleAbstract implements WebInterface
class Controller extends ModuleAbstract
{
/**
* Module path.

View File

@ -35,7 +35,7 @@ echo $this->getData('nav')->render();
$url = UriFactory::build('{/prefix}admin/account/settings?{?}&id=' . $value->getId()); ?>
<tr tabindex="0" data-href="<?= $url; ?>">
<td data-label="<?= $this->getHtml('ID', '0', '0'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
<td data-label="<?= $this->getHtml('Name'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->name); ?></a>
<td data-label="<?= $this->getHtml('Name'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
<td data-label="<?= $this->getHtml('Parent'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->parent !== null ? $value->parent->getName() : ''); ?></a>
<?php endforeach; ?>
<?php if (empty($categories)) : ?>