From 83a3a2642fe98cd3d669d69a332a5fc443216cc3 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 12 May 2016 21:30:47 +0200 Subject: [PATCH] silence code checker --- config/appconfig.php | 14 +++++++------- 1 file 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 @@ 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 @@ public function getConfig($key=null) { 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']); }