From 2cffff339b8d166b8423f0cc982489cb18071d6e Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 3 Apr 2013 12:25:21 +0200 Subject: removed useless settings --- appinfo/app.php | 3 ++- appinfo/routes.php | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'appinfo') diff --git a/appinfo/app.php b/appinfo/app.php index 69a4db3a8..a6534bdc0 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -52,6 +52,7 @@ $api->addNavigationEntry(array( )); -\OCP\Backgroundjob::addRegularTask( 'OCA\News\Backgroundjob\Task', 'run'); +$api->addRegularTask('OCA\News\Backgroundjob\Task', 'run'); +$api->registerAdmin('settings/admin'); diff --git a/appinfo/routes.php b/appinfo/routes.php index 4397b4750..903f04d06 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -194,6 +194,17 @@ $this->create('news_usersettings_read_hide', '/usersettings/read/hide')->post()- ); +/** + * Settings + */ +$this->create('news_setings_auto_purge_limit', '/settings/autopurgelimit') +->post()->action( + function($params){ + App::main('SettingsController', 'setAutoPurgeLimit', $params, + new DIContainer()); + } +); + /** * Feed API -- cgit v1.2.3