diff --git a/CHANGELOG b/CHANGELOG
index e501b8b72..add843d9f 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -378,6 +378,7 @@
if length is greater than 8
- parse changelog and readme of extension as markdown
- fix incorrect base path for url routing, which broke some extensions
+- migrate extension after enabling it with console tool
--------------------------------------------------------------------------------
Changes in version 5.1.44
diff --git a/inc/inc.ConversionInit.php b/inc/inc.ConversionInit.php
index f5cce91c3..bc2af5098 100644
--- a/inc/inc.ConversionInit.php
+++ b/inc/inc.ConversionInit.php
@@ -77,6 +77,7 @@ $conversionmgr->addService(new SeedDMS_ConversionServiceImageToText('image/jpg',
$conversionmgr->addService(new SeedDMS_ConversionServiceTextToText('text/plain', 'text/plain'))->setLogger($logger);
$conversionmgr->addService(new SeedDMS_ConversionServiceTextToText('text/markdown', 'text/plain'))->setLogger($logger);
$conversionmgr->addService(new SeedDMS_ConversionServiceTextToText('text/x-rst', 'text/plain'))->setLogger($logger);
+$conversionmgr->addService(new SeedDMS_ConversionServiceTextToText('text/x-csrc', 'text/plain'))->setLogger($logger);
$conversionmgr->addService(new SeedDMS_ConversionServiceHtmlToText('text/html', 'text/plain'))->setLogger($logger);
diff --git a/utils/Commands/ConfigureextensionCommand.php b/utils/Commands/ConfigureextensionCommand.php
index 61db46d3d..ca43bb4a5 100644
--- a/utils/Commands/ConfigureextensionCommand.php
+++ b/utils/Commands/ConfigureextensionCommand.php
@@ -66,6 +66,8 @@ class ConfigureextensionCommand extends Command
return Command::FAILURE;
}
+ require_once('inc/inc.DBInit.php');
+
if ($input->getOption('enable')) {
if ($settings->extensionIsDisabled($extname)) {
$settings->enableExtension($extname);
@@ -73,7 +75,18 @@ class ConfigureextensionCommand extends Command
$output->writeln(sprintf("Could not write configuration.", $extname));
return Command::FAILURE;
} else {
- $output->writeln(sprintf("Extension is %s.", $settings->extensionIsDisabled($extname) ? 'disabled' : 'enabled'));
+ $ret = $extmgr->migrate($extname, $settings, $dms, $logger);
+ if($ret !== null) {
+ if($ret === true) {
+ $output->writeln(sprintf("Migration of extension successful"));
+ $output->writeln(sprintf("Extension is %s.", $settings->extensionIsDisabled($extname) ? 'disabled' : 'enabled'));
+ } else {
+ $output->writeln(sprintf("Migration of extension failed"));
+ return Command::FAILURE;
+ }
+ } else {
+ $output->writeln(sprintf("Extension is %s.", $settings->extensionIsDisabled($extname) ? 'disabled' : 'enabled'));
+ }
}
} else {
$output->writeln(sprintf("Extension already enabled."));
diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php
index 128b76313..3a5b61b21 100644
--- a/views/bootstrap/class.Bootstrap.php
+++ b/views/bootstrap/class.Bootstrap.php
@@ -495,6 +495,23 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
echo " \n";
/* }}} End of user profile menu */
+ /* Status icons {{{ */
+ $menuitems = [];
+ if($this->hasHook('globalNavigationStatusBar'))
+ $menuitems = $this->callHook('globalNavigationStatusBar', $menuitems);
+ if ($menuitems) {
+ echo "
\n";
+ foreach($menuitems as $menuitem) {
+ if (is_string($menuitem)) {
+ echo "- ".$menuitem."
";
+ } else {
+ echo "- ".$menuitem['label']."
";
+ }
+ }
+ echo "
\n";
+ }
+ /* }}} Εnd of status icons */
+
/* menu tasks {{{ */
if($this->params['enablemenutasks']) {
if($accessobject->check_view_access('Tasks', array('action'=>'menuTasks'))) {
diff --git a/views/bootstrap4/class.Bootstrap4.php b/views/bootstrap4/class.Bootstrap4.php
index 789873b17..cb535b831 100644
--- a/views/bootstrap4/class.Bootstrap4.php
+++ b/views/bootstrap4/class.Bootstrap4.php
@@ -441,6 +441,23 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
}
/* }}} End of clipboard */
+ /* Status icons {{{ */
+ $menuitems = [];
+ if($this->hasHook('globalNavigationStatusBar'))
+ $menuitems = $this->callHook('globalNavigationStatusBar', $menuitems);
+ if ($menuitems) {
+ echo " \n";
+ foreach($menuitems as $menuitem) {
+ if (is_string($menuitem)) {
+ echo "- ".$menuitem."
";
+ } else {
+ echo "- ".$menuitem['label']."
";
+ }
+ }
+ echo "
\n";
+ }
+ /* }}} Εnd of status icons */
+
/* user profile menu {{{ */
echo "