Skip to content
Snippets Groups Projects
Commit 8c51da59 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

remove unused $category property

parent 2f7a5efd
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,6 @@ abstract class AbstractItem {
protected $params = array();
protected $nofollow = true;
protected $replacement = '';
protected $category = 'page';
protected $svg = DOKU_INC . 'lib/images/menu/00-default_checkbox-blank-circle-outline.svg';
protected $label = '';
protected $context = self::CTX_ALL;
......
......@@ -11,8 +11,6 @@ class Admin extends AbstractItem {
global $INFO;
parent::__construct();
$this->category = 'user';
if(!$INFO['ismanager']) {
throw new \RuntimeException("admin is for managers only");
}
......
......@@ -10,7 +10,6 @@ class Index extends AbstractItem {
public function __construct() {
parent::__construct();
$this->category = 'site';
$this->accesskey = 'x';
// allow searchbots to get to the sitemap from the homepage (when dokuwiki isn't providing a sitemap.xml)
......
......@@ -11,7 +11,6 @@ class Login extends AbstractItem {
global $INPUT;
parent::__construct();
$this->category = 'user';
$this->params['sectok'] = getSecurityToken();
if($INPUT->server->has('REMOTE_USER')) {
if(!actionOK('logout')) {
......
......@@ -11,7 +11,6 @@ class Media extends AbstractItem {
global $ID;
parent::__construct();
$this->category = 'site';
$params['ns'] = getNS($ID);
}
......
......@@ -8,10 +8,10 @@ class MediaManager extends AbstractItem {
/** @inheritdoc */
public function __construct() {
global $IMG;
parent::__construct();
// View image in media manager
global $IMG;
$imgNS = getNS($IMG);
$authNS = auth_quickaclcheck("$imgNS:*");
if($authNS < AUTH_UPLOAD) {
......
......@@ -8,7 +8,6 @@ class Recent extends AbstractItem {
public function __construct() {
parent::__construct();
$this->category = 'site';
$this->accesskey = 'r';
$this->svg = DOKU_INC . 'lib/images/menu/calendar-clock.svg';
}
......
......@@ -9,8 +9,6 @@ class Register extends AbstractItem {
global $INPUT;
parent::__construct();
$this->category = 'user';
if($INPUT->server->str('REMOTE_USER')) {
throw new \RuntimeException("no register when already logged in");
}
......
......@@ -9,8 +9,6 @@ class Resendpwd extends AbstractItem {
global $INPUT;
parent::__construct();
$this->category = 'user';
if($INPUT->server->str('REMOTE_USER')) {
throw new \RuntimeException("no resendpwd when already logged in");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment