diff --git a/Controller/ContentCleanerController.php b/Controller/ContentCleanerController.php index 7a98a68..c825cd7 100644 --- a/Controller/ContentCleanerController.php +++ b/Controller/ContentCleanerController.php @@ -31,4 +31,14 @@ public function show() 'db_version' => $this->db->getDriver()->getDatabaseVersion(), ))); } + + public function getDeletablePlugins() + { + // GET THE JSON OF PLUGINS WHICH CAN BE DELETED + // 'template/cleaning-jobs/plugin-cleaning.json' + + $file = PLUGINS_DIR . '/ContentCleaner/Template/cleaning-jobs/plugin-cleaning.json'; + $plugins = json_decode(file_get_contents($file), true); + return $plugins; + } } diff --git a/Controller/PluginCleaningController.php b/Controller/PluginCleaningController.php index 6ef3592..357aea7 100644 --- a/Controller/PluginCleaningController.php +++ b/Controller/PluginCleaningController.php @@ -14,13 +14,5 @@ class PluginCleaningController extends BaseController { - public function getDeletablePlugins() - { - // GET THE JSON OF PLUGINS WHICH CAN BE DELETED - // 'template/cleaning-jobs/plugin-cleaning.json' - $file = PLUGINS_DIR . '/ContentCleaner/Template/cleaning-jobs/plugin-cleaning.json'; - $plugins = json_decode(file_get_contents($file), true); - return $plugins; - } }