| Conditions | 3 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | public function __construct() { |
||
| 9 | parent::__construct(); |
||
| 10 | |||
| 11 | $this->category = 'site'; |
||
| 12 | $this->accesskey = 'x'; |
||
| 13 | |||
| 14 | // allow searchbots to get to the sitemap from the homepage (when dokuwiki isn't providing a sitemap.xml) |
||
| 15 | global $conf; |
||
| 16 | global $ID; |
||
| 17 | if($conf['start'] == $ID && !$conf['sitemap']) { |
||
| 18 | $this->nofollow = false; |
||
| 19 | } |
||
| 20 | } |
||
| 21 | |||
| 23 |