Merge pull request #186 from nextcloud/fixes

Some fixes
This commit is contained in:
Roeland Jago Douma 2018-03-24 13:49:18 +01:00 committed by GitHub
commit cde747108d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 5 additions and 21 deletions

View File

@ -23,7 +23,7 @@
<screenshot>https://nextcloud.com/wp-content/themes/next/assets/img/features/collabora-presentation.png</screenshot>
<screenshot>https://nextcloud.com/wp-content/themes/next/assets/img/features/collabora-spreadsheet.png</screenshot>
<dependencies>
<nextcloud min-version="12" max-version="13" />
<nextcloud min-version="12" max-version="14" />
</dependencies>
<settings>
<admin>OCA\Richdocuments\Settings\Admin</admin>

View File

@ -29,18 +29,5 @@ use OCP\AppFramework\IAppContainer;
class Application extends App {
public function __construct (array $urlParams = array()) {
parent::__construct('richdocuments', $urlParams);
$container = $this->getContainer();
$container->registerService(
DiscoveryManager::class,
function(IAppContainer $container) {
return new DiscoveryManager(
$container->getServer()->getHTTPClientService(),
$container->getServer()->getAppDataDir('richdocuments'),
$container->getServer()->getConfig(),
$container->getServer()->getL10N('richdocuments'),
new TimeFactory()
);
}
);
}
}

View File

@ -9,13 +9,13 @@
* later.
*/
namespace OCA\Richdocuments;
namespace OCA\Richdocuments\Db;
/**
* Generic DB class
*/
abstract class Db {
abstract class DbBase {
protected $data;

View File

@ -11,10 +11,7 @@
namespace OCA\Richdocuments\Db;
use \OCA\Richdocuments\Download;
use \OCA\Richdocuments\DownloadResponse;
class Wopi extends \OCA\Richdocuments\Db{
class Wopi extends DbBase {
const DB_TABLE = '`*PREFIX*richdocuments_wopi`';