diff --git a/application/modules/admin/controllers/admin/Modules.php b/application/modules/admin/controllers/admin/Modules.php index f70d80d80..e942def91 100644 --- a/application/modules/admin/controllers/admin/Modules.php +++ b/application/modules/admin/controllers/admin/Modules.php @@ -248,7 +248,7 @@ public function updateAction() $moduleMapper->updateVersion($key, $config->config['version']); $this->addMessage('updateSuccess'); } finally { - $this->redirect(['action' => $this->getRequest()->getParam('from')]); + $this->redirect(['action' => $this->getRequest()->getParam('from'), 'anchor' => '#Module_'.$key]); } } } @@ -267,7 +267,7 @@ public function localUpdateAction() $moduleMapper->updateVersion($key, $config->config['version']); $this->addMessage('updateSuccess'); } finally { - $this->redirect(['action' => $this->getRequest()->getParam('from')]); + $this->redirect(['action' => $this->getRequest()->getParam('from'), 'anchor' => '#Module_'.$key]); } } diff --git a/application/modules/admin/views/admin/modules/index.php b/application/modules/admin/views/admin/modules/index.php index 2c4aecca4..0a6608d53 100644 --- a/application/modules/admin/views/admin/modules/index.php +++ b/application/modules/admin/views/admin/modules/index.php @@ -82,7 +82,7 @@ function checkOwnDependencies($versionsOfModules, $moduleOnUpdateServer) { } if ($this->getUser()->hasAccess('module_'.$module->getKey()) && !$module->getSystemModule()): ?> - +
diff --git a/application/modules/forum/config/config.php b/application/modules/forum/config/config.php index db77a346b..bc2d99417 100644 --- a/application/modules/forum/config/config.php +++ b/application/modules/forum/config/config.php @@ -248,8 +248,6 @@ public function getUpdate($installedVersion) file_put_contents(APPLICATION_PATH.'/modules/forum/static/css/groupappearance/'.$filename, $defaultCss); $databaseConfig->set('forum_filenameGroupappearanceCSS', $filename); - $this->db()->query('INSERT INTO `[prefix]_forum_groupranking` (group_id,rank) VALUES(1,0);'); - // Add table for group ranking, which is needed when deciding which appearance needs to be applied. $this->db()->queryMulti('CREATE TABLE IF NOT EXISTS `[prefix]_forum_groupranking` ( `id` INT(11) NOT NULL AUTO_INCREMENT, @@ -257,6 +255,8 @@ public function getUpdate($installedVersion) `rank` INT(11) NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1;'); + + $this->db()->query('INSERT INTO `[prefix]_forum_groupranking` (group_id,rank) VALUES(1,0);'); } } }