]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/profilesettings.php
action to restore a user's backup from the Web interface
[quix0rs-gnu-social.git] / actions / profilesettings.php
index 0226e1dd456275ca8dd0cac2abf21aa7de8a92a8..8f55a471890931df2fd174bd9c85abd50537d8dc 100644 (file)
@@ -472,6 +472,13 @@ class ProfilesettingsAction extends AccountSettingsAction
                            _('Delete account'));
             $this->elementEnd('li');
         }
+        if ($user->hasRight(Right::RESTOREACCOUNT)) {
+            $this->elementStart('li');
+            $this->element('a',
+                           array('href' => common_local_url('restoreaccount')),
+                           _('Restore account'));
+            $this->elementEnd('li');
+        }
         $this->elementEnd('div');
     }
 }