summaryrefslogtreecommitdiff
path: root/app/Controllers/userController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-08-29 11:33:37 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-08-29 11:33:37 +0200
commitebcebfe4311838406e85efb701c68024dbf08fbc (patch)
tree7fdd309e38271a5a5ccd00fd19ccdd04c10d8ae3 /app/Controllers/userController.php
parent70544d8d40e07bcb90bc5e8bfe1282522c79dc00 (diff)
parentd396dd71524694766bde852834be15f477ceaf3e (diff)
Merge pull request #958 from aledeg/config_ui
Add a system configuration page
Diffstat (limited to 'app/Controllers/userController.php')
-rw-r--r--app/Controllers/userController.php24
1 files changed, 0 insertions, 24 deletions
diff --git a/app/Controllers/userController.php b/app/Controllers/userController.php
index 428cd145d..1c7d621f1 100644
--- a/app/Controllers/userController.php
+++ b/app/Controllers/userController.php
@@ -272,28 +272,4 @@ class FreshRSS_user_Controller extends Minz_ActionController {
Minz_Request::forward($redirect_url, true);
}
-
- /**
- * This action updates the max number of registrations.
- *
- * Request parameter is:
- * - max-registrations (int >= 0)
- */
- public function setRegistrationAction() {
- if (Minz_Request::isPost() && FreshRSS_Auth::hasAccess('admin')) {
- $limits = FreshRSS_Context::$system_conf->limits;
- $limits['max_registrations'] = Minz_Request::param('max-registrations', 1);
- FreshRSS_Context::$system_conf->limits = $limits;
- FreshRSS_Context::$system_conf->save();
-
- invalidateHttpCache();
-
- Minz_Session::_param('notification', array(
- 'type' => 'good',
- 'content' => _t('feedback.user.set_registration')
- ));
- }
-
- Minz_Request::forward(array('c' => 'user', 'a' => 'manage'), true);
- }
}