You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

25 lines
502 B

  1. <?php
  2. namespace dokuwiki\Menu\Item;
  3. /**
  4. * Class Subscribe
  5. *
  6. * Access the subscription management view
  7. */
  8. class Subscribe extends AbstractItem
  9. {
  10. /** @inheritdoc */
  11. public function __construct()
  12. {
  13. global $INPUT;
  14. parent::__construct();
  15. if (!$INPUT->server->str('REMOTE_USER')) {
  16. throw new \RuntimeException("subscribe is only for logged in users");
  17. }
  18. $this->svg = DOKU_INC . 'lib/images/menu/09-subscribe_email-outline.svg';
  19. }
  20. }