Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Commit

Permalink
silence code checker
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Posselt committed May 12, 2016
1 parent 1c6871b commit 83a3a26
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions config/appconfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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']);
}

Expand Down

0 comments on commit 83a3a26

Please sign in to comment.