Apply rector fixes to inc/Menu
[dokuwiki.git] / inc / Menu / Item / Index.php
blobac846f74e0a9f9cf340bdffc5bcbdec265db5cb7
1 <?php
3 namespace dokuwiki\Menu\Item;
5 /**
6 * Class Index
8 * Shows the sitemap
9 */
10 class Index extends AbstractItem
13 /** @inheritdoc */
14 public function __construct()
16 global $conf;
17 global $ID;
18 parent::__construct();
20 $this->accesskey = 'x';
21 $this->svg = DOKU_INC . 'lib/images/menu/file-tree.svg';
23 // allow searchbots to get to the sitemap from the homepage (when dokuwiki isn't providing a sitemap.xml)
24 if ($conf['start'] == $ID && !$conf['sitemap']) {
25 $this->nofollow = false;