summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-05-12 21:30:47 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2016-05-12 21:30:47 +0200
commit83a3a2642fe98cd3d669d69a332a5fc443216cc3 (patch)
treee9a1d1cd8cad6ce02c11fc997887692a71b7fd4a
parent1c6871b744d7f902bb1a5ab8c63259cb629016d6 (diff)
silence code checker
-rw-r--r--config/appconfig.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/config/appconfig.php b/config/appconfig.php
index 21e406e36..55c408c72 100644
--- a/config/appconfig.php
+++ b/config/appconfig.php
@@ -15,11 +15,10 @@ namespace OCA\News\Config;
use SimpleXMLElement;
-use \OCP\INavigationManager;
-use \OCP\IURLGenerator;
-use \OCP\Backgroundjob;
-use \OCP\Util;
-use \OCP\App;
+use OCP\INavigationManager;
+use OCP\IURLGenerator;
+use OCP\Util;
+use OCP\App;
// Used to parse app.json file, should be in core at some point
class AppConfig {
@@ -84,8 +83,9 @@ class AppConfig {
public function registerAll() {
$this->registerNavigation();
$this->registerHooks();
- // Fuck it lets just do this quick and dirty until core supports this
- Backgroundjob::addRegularTask($this->config['cron']['job'], 'run');
+ // IJob API is fucked up, so silence the code checker
+ $class = '\OCP\Backgroundjob';
+ $class::addRegularTask($this->config['cron']['job'], 'run');
App::registerAdmin($this->config['id'], $this->config['admin']);
}