From f3f27d26cccfd63760b798d3e2d3d550555dbdd1 Mon Sep 17 00:00:00 2001 From: thiemen Date: Tue, 23 Apr 2019 18:39:49 +1200 Subject: [PATCH] PATCH: fixes --- _config.php | 6 +++--- _config/taxonomy.yml | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/_config.php b/_config.php index 0000815..e8aed3e 100644 --- a/_config.php +++ b/_config.php @@ -21,7 +21,7 @@ if (!file_exists(Director::baseFolder() . DIRECTORY_SEPARATOR . DMS_DIR)) { // Ensure compatibility with PHP 7.2 ("object" is a reserved word), // with SilverStripe 3.6 (using Object) and SilverStripe 3.7 (using SS_Object) -if (!class_exists('SS_Object')) class_alias('Object', 'SS_Object'); +// if (!class_exists('SS_Object')) class_alias('Object', 'SS_Object'); CMSMenu::remove_menu_item(DMSDocumentAddController::class); @@ -32,11 +32,11 @@ ShortcodeParser::get('default')->register( if ($config->get(DMSDocument_versions::class, 'enable_versions')) { //using the same db relations for the versioned documents, as for the actual documents - $config->update(DMSDocument_versions::class, 'db', $config->get(DMSDocument::class, 'db')); + // Config::modify()->update(DMSDocument_versions::class, 'db', $config->get(DMSDocument::class, 'db')); } // add dmsassets folder to file system sync exclusion if (strpos($config->get(DMS::class, 'folder_name'), 'assets/') === 0) { $folderName = substr($config->get(DMS::class, 'folder_name'), 7); - $config->update(Filesystem::class, 'sync_blacklisted_patterns', array("/^" . $folderName . "$/i",)); + // Config::modify()->update(Filesystem::class, 'sync_blacklisted_patterns', array("/^" . $folderName . "$/i",)); } diff --git a/_config/taxonomy.yml b/_config/taxonomy.yml index b31fb02..04fc39c 100644 --- a/_config/taxonomy.yml +++ b/_config/taxonomy.yml @@ -3,6 +3,7 @@ Name: dmstaxonomy Only: moduleexists: taxonomy --- +# todo: find out the exact name for taxonomy... TaxonomyType: extensions: - Sunnysideup\DMS\Extensions\DMSTaxonomyTypeExtension