1f21dad39SAndreas Gohr<?php 2f21dad39SAndreas Gohr 3f21dad39SAndreas Gohrnamespace dokuwiki\Action; 4f21dad39SAndreas Gohr 5f21dad39SAndreas Gohruse dokuwiki\Action\Exception\ActionAbort; 6f21dad39SAndreas Gohr 7*ab583a1bSAndreas Gohr/** 8*ab583a1bSAndreas Gohr * Class Profile 9*ab583a1bSAndreas Gohr * 10*ab583a1bSAndreas Gohr * Handle the profile form 11*ab583a1bSAndreas Gohr * 12*ab583a1bSAndreas Gohr * @package dokuwiki\Action 13*ab583a1bSAndreas Gohr */ 14f21dad39SAndreas Gohrclass Profile extends AbstractUserAction { 15f21dad39SAndreas Gohr 16f21dad39SAndreas Gohr /** @inheritdoc */ 17f21dad39SAndreas Gohr function minimumPermission() { 18f21dad39SAndreas Gohr return AUTH_NONE; 19f21dad39SAndreas Gohr } 20f21dad39SAndreas Gohr 21*ab583a1bSAndreas Gohr /** @inheritdoc */ 22f21dad39SAndreas Gohr public function preProcess() { 23f21dad39SAndreas Gohr global $lang; 24f21dad39SAndreas Gohr if(updateprofile()) { 25f21dad39SAndreas Gohr msg($lang['profchanged'], 1); 26f21dad39SAndreas Gohr throw new ActionAbort('show'); 27f21dad39SAndreas Gohr } 28f21dad39SAndreas Gohr } 29f21dad39SAndreas Gohr 30*ab583a1bSAndreas Gohr /** @inheritdoc */ 31f21dad39SAndreas Gohr public function tplContent() { 32f21dad39SAndreas Gohr html_updateprofile(); 33f21dad39SAndreas Gohr } 34f21dad39SAndreas Gohr 35f21dad39SAndreas Gohr} 36