diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2017-05-13 22:31:25 +0300 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2017-05-13 22:35:17 +0300 |
commit | 53822bb4bc21cadc135d70d3d099c5fd117424b0 (patch) | |
tree | 0fe2e35c648cf5441fb3be7f7412aa11d8cfedc1 /appinfo | |
parent | 86c39a75f04a42be50b7f685f84dae46e54fc137 (diff) |
add new apis
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/app.php | 2 | ||||
-rw-r--r-- | appinfo/info.xml | 27 |
2 files changed, 10 insertions, 19 deletions
diff --git a/appinfo/app.php b/appinfo/app.php index 88aeed65c..65c53725c 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -15,4 +15,4 @@ namespace OCA\News\AppInfo; require_once __DIR__ . '/../vendor/autoload.php'; -(new Application)->registerConfig(); +\OCP\Util::connectHook('OC_User', 'pre_deleteUser', 'OCA\News\Hooks\User', 'deleteUser');
\ No newline at end of file diff --git a/appinfo/info.xml b/appinfo/info.xml index a464f499b..8bf4536e6 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -8,7 +8,7 @@ Before you update to a new version, [check the changelog](https://github.com/nextcloud/news/blob/master/CHANGELOG.md) to avoid surprises. **Important**: To enable feed updates you will need to enable either [Nextcloud system cron](https://docs.nextcloud.com/server/10/admin_manual/configuration_server/background_jobs_configuration.html#cron) or use [an updater](https://github.com/nextcloud/news-updater) which uses the built in update API and disable cron updates. More information can be found [in the README](https://github.com/nextcloud/news).]]></description> - <version>11.0.0</version> + <version>11.0.1</version> <licence>agpl</licence> <author>Bernhard Posselt</author> <author>Alessandro Cosentino</author> @@ -38,10 +38,14 @@ Before you update to a new version, [check the changelog](https://github.com/nex <nextcloud min-version="12" max-version="12"/> </dependencies> - <!--<settings>--> - <!--<admin>OCA\News\Settings\Admin</admin>--> - <!--<admin-section>OCA\News\Settings\Section</admin-section>--> - <!--</settings>--> + <background-jobs> + <job>OCA\News\Cron\Updater</job> + </background-jobs> + + <settings> + <admin>OCA\News\Settings\Admin</admin> + <admin-section>OCA\News\Settings\Section</admin-section> + </settings> <navigations> <navigation> @@ -49,17 +53,4 @@ Before you update to a new version, [check the changelog](https://github.com/nex <route>news.page.index</route> </navigation> </navigations> - - <!-- cron jobs --> - <cron> - <job>OCA\News\Cron\Updater</job> - </cron> - - <!-- hooks --> - <hooks> - <hook> - <channel>OC_User::pre_deleteUser</channel> - <subscriber>OCA\News\Hooks\User::deleteUser</subscriber> - </hook> - </hooks> </info> |