diff options
Diffstat (limited to '')
-rw-r--r-- | app/model/common.mod.php | 10 | ||||
-rw-r--r-- | app/view/common/setting.modal.view.php | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/app/model/common.mod.php b/app/model/common.mod.php index 32bdb44..7630dfa 100644 --- a/app/model/common.mod.php +++ b/app/model/common.mod.php @@ -239,6 +239,16 @@ class CommonModel extends MasterModel return; } + if (isset($input['rmImage'])) + { + if ($user->rmHeadImage()) + $this->logNotice("Image removed"); + else + $this->logError("Error removing user image"); + + return; + } + if ($form->setPasswd) { if ($form->newPasswd == $form->confPasswd) diff --git a/app/view/common/setting.modal.view.php b/app/view/common/setting.modal.view.php index 60063cf..e43f723 100644 --- a/app/view/common/setting.modal.view.php +++ b/app/view/common/setting.modal.view.php @@ -245,7 +245,7 @@ <span class="glyphicon glyphicon-camera"></span> Upload new image </button> <br /> - <button type="button" class="btn btn-danger btn-xs"> + <button type="submit" name="input[rmImage]" class="btn btn-danger btn-xs" onclick="return assertConfirm()"> <span class="glyphicon glyphicon-remove"></span> Remove image </button> </div> |