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
478 B

  1. <?php
  2. namespace dokuwiki\Menu\Item;
  3. /**
  4. * Class Profile
  5. *
  6. * Open the user's profile
  7. */
  8. class Profile extends AbstractItem {
  9. /** @inheritdoc */
  10. public function __construct() {
  11. global $INPUT;
  12. parent::__construct();
  13. if(!$INPUT->server->str('REMOTE_USER')) {
  14. throw new \RuntimeException("profile is only for logged in users");
  15. }
  16. $this->svg = DOKU_INC_COMPAT . 'lib/images/menu/account-card-details.svg';
  17. }
  18. }