<optiontype>boolean</optiontype>
<defaultvalue>1</defaultvalue>
</option>
+ <option name="module_members_list">
+ <categoryname>module.user</categoryname>
+ <optiontype>boolean</optiontype>
+ <defaultvalue>1</defaultvalue>
+ </option>
<option name="module_team_page">
<categoryname>module.user</categoryname>
<optiontype>boolean</optiontype>
<controller><![CDATA[wcf\page\MembersListPage]]></controller>
<position>header</position>
<permissions>user.profile.canViewMembersList</permissions>
+ <options>module_members_list</options>
</pagemenuitem>
<pagemenuitem name="wcf.user.recentActivity">
<position>header</position>
<parent>wcf.user.members</parent>
<permissions>user.profile.canViewMembersList</permissions>
+ <options>module_members_list</options>
</pagemenuitem>
</import>
</data>
\ No newline at end of file
*/
public $activeMenuItem = 'wcf.user.search';
+ /**
+ * @see wcf\page\AbstractPage::$neededModules
+ */
+ public $neededModules = array('MODULE_MEMBERS_LIST');
+
/**
* username
* @var string
*/
public $neededPermissions = array('user.profile.canViewMembersList');
+ /**
+ * @see wcf\page\AbstractPage::$neededModules
+ */
+ public $neededModules = array('MODULE_MEMBERS_LIST');
+
/**
* @see wcf\page\AbstractPage::$enableTracking
*/
$this->eventList->readObjects();
// add breadcrumbs
- WCF::getBreadcrumbs()->add(new Breadcrumb(WCF::getLanguage()->get('wcf.user.members'), LinkHandler::getInstance()->getLink('MembersList')));
+ if (MODULE_MEMBERS_LIST) WCF::getBreadcrumbs()->add(new Breadcrumb(WCF::getLanguage()->get('wcf.user.members'), LinkHandler::getInstance()->getLink('MembersList')));
}
/**
parent::readData();
// add breadcrumbs
- WCF::getBreadcrumbs()->add(new Breadcrumb(WCF::getLanguage()->get('wcf.user.members'), LinkHandler::getInstance()->getLink('MembersList')));
+ if (MODULE_MEMBERS_LIST) WCF::getBreadcrumbs()->add(new Breadcrumb(WCF::getLanguage()->get('wcf.user.members'), LinkHandler::getInstance()->getLink('MembersList')));
}
/**
parent::readData();
// add breadcrumbs
- WCF::getBreadcrumbs()->add(new Breadcrumb(WCF::getLanguage()->get('wcf.user.members'), LinkHandler::getInstance()->getLink('MembersList')));
+ if (MODULE_MEMBERS_LIST) WCF::getBreadcrumbs()->add(new Breadcrumb(WCF::getLanguage()->get('wcf.user.members'), LinkHandler::getInstance()->getLink('MembersList')));
// get profile content
if ($this->editOnInit) {
parent::readData();
// add breadcrumbs
- WCF::getBreadcrumbs()->add(new Breadcrumb(WCF::getLanguage()->get('wcf.user.members'), LinkHandler::getInstance()->getLink('MembersList')));
+ if (MODULE_MEMBERS_LIST) WCF::getBreadcrumbs()->add(new Breadcrumb(WCF::getLanguage()->get('wcf.user.members'), LinkHandler::getInstance()->getLink('MembersList')));
// load locations
foreach (ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.user.online.location') as $objectType) {
* @param string $menuItem name of the active menu item
*/
public function setActiveMenuItem($menuItem) {
- $this->activeMenuItems = array();
-
- // build active menu list
+ $newActiveMenuItems = array();
while (isset($this->menuItemList[$menuItem])) {
- $this->activeMenuItems[] = $menuItem;
+ $newActiveMenuItems[] = $menuItem;
$menuItem = $this->menuItemList[$menuItem]->parentMenuItem;
+
+ if ($menuItem && !isset($this->menuItemList[$menuItem])) return false;
}
+
+ if (!empty($newActiveMenuItems)) $this->activeMenuItems = $newActiveMenuItems;
}
/**
<item name="wcf.acp.option.module_poll"><![CDATA[Umfragen]]></item>
<item name="wcf.acp.option.poll_max_options"><![CDATA[Maximale Anzahl an Antworten]]></item>
<item name="wcf.acp.option.error.validationFailed"><![CDATA[Sie haben einen ungültigen Inhalt eingegeben.]]></item>
+ <item name="wcf.acp.option.module_members_list"><![CDATA[Mitgliederliste]]></item>
</category>
<category name="wcf.acp.package">
<item name="wcf.acp.option.module_poll"><![CDATA[Polls]]></item>
<item name="wcf.acp.option.poll_max_options"><![CDATA[Maximum number of options]]></item>
<item name="wcf.acp.option.error.validationFailed"><![CDATA[TOOD: Sie haben einen ungültigen Inhalt eingegeben.]]></item>
+ <item name="wcf.acp.option.module_members_list"><![CDATA[Members List]]></item>
</category>
<category name="wcf.acp.package">