diff --git a/application/modules/admin/controllers/admin/Index.php b/application/modules/admin/controllers/admin/Index.php index 293f9af8c..4199170bb 100644 --- a/application/modules/admin/controllers/admin/Index.php +++ b/application/modules/admin/controllers/admin/Index.php @@ -94,7 +94,7 @@ public function indexAction() $this->getView()->set('ilchNewsList', $this->getConfig()->get('updateserver') . 'ilchNews.php'); $this->getView()->set('version', $this->getConfig()->get('version')); $this->getView()->set('notifications', $notificationsMapper->getNotifications()); - $this->getLayout()->set('accesses', $this->getAccesses()); + $this->getView()->set('accesses', $this->getAccesses()); } public function deleteAction() diff --git a/application/modules/admin/views/admin/index/index.php b/application/modules/admin/views/admin/index/index.php index 44440779b..dfbdaa4b5 100644 --- a/application/modules/admin/views/admin/index/index.php +++ b/application/modules/admin/views/admin/index/index.php @@ -125,7 +125,7 @@ - hasAccess('Admin_' . $notification->getModule(), $notification->getModule()))) : ?> + hasAccess('Admin_' . $notification->getModule(), 'Admin_' . $notification->getModule()))) : ?> getTimestamp()); ?> getDeleteCheckbox('check_notifications', $notification->getId()) ?> diff --git a/application/modules/bbcodeconvert/config/config.php b/application/modules/bbcodeconvert/config/config.php index 035f285cf..feb4d7b8a 100644 --- a/application/modules/bbcodeconvert/config/config.php +++ b/application/modules/bbcodeconvert/config/config.php @@ -1,4 +1,5 @@ getTranslator()); @@ -165,7 +166,7 @@ public function convertAction() } $converted = []; - foreach($_SESSION['bbcodeconvert_toConvert'] as $value) { + foreach ($_SESSION['bbcodeconvert_toConvert'] as $value) { $converted[$value['key']] = $value['completed']; } @@ -270,7 +271,7 @@ public function convert(string $key, int $index, int $progress, string $currentT $textsMapper->table = 'events'; $texts = $textsMapper->getTexts($index, self::batch); - foreach($texts as $text) { + foreach ($texts as $text) { $convertedText = $this->getView()->getHtmlFromBBCode($text['text']); if (strlen($convertedText) <= self::limitLongText) { @@ -289,7 +290,7 @@ public function convert(string $key, int $index, int $progress, string $currentT $textsMapper->table = 'forum_posts'; $texts = $textsMapper->getTexts($index, self::batch); - foreach($texts as $text) { + foreach ($texts as $text) { $convertedText = $this->getView()->getHtmlFromBBCode($text['text']); if (strlen($convertedText) <= self::limitText) { @@ -308,7 +309,7 @@ public function convert(string $key, int $index, int $progress, string $currentT $textsMapper->table = 'gbook'; $texts = $textsMapper->getTexts($index, self::batch); - foreach($texts as $text) { + foreach ($texts as $text) { $convertedText = $this->getView()->getHtmlFromBBCode($text['text']); if (strlen($convertedText) <= self::limitMediumText) { @@ -327,7 +328,7 @@ public function convert(string $key, int $index, int $progress, string $currentT $textsMapper->table = 'jobs'; $texts = $textsMapper->getTexts($index, self::batch); - foreach($texts as $text) { + foreach ($texts as $text) { $convertedText = $this->getView()->getHtmlFromBBCode($text['text']); if (strlen($convertedText) <= self::limitMediumText) { @@ -346,7 +347,7 @@ public function convert(string $key, int $index, int $progress, string $currentT $textsMapper->table = 'kvticket'; $texts = $textsMapper->getTexts($index, self::batch); - foreach($texts as $text) { + foreach ($texts as $text) { $convertedText = $this->getView()->getHtmlFromBBCode($text['text']); if (strlen($convertedText) <= self::limitMediumText) { @@ -361,7 +362,7 @@ public function convert(string $key, int $index, int $progress, string $currentT return ['completed' => false, 'index' => $index + count($texts), 'progress' => $index + count($texts)]; case 'radiohoerercharts': // table: config, column: value, datatype: TEXT - foreach(['radio_hoerercharts_votetext_de', 'radio_hoerercharts_votetext_en'] as $voteTextKey) { + foreach (['radio_hoerercharts_votetext_de', 'radio_hoerercharts_votetext_en'] as $voteTextKey) { $convertedText = $this->getView()->getHtmlFromBBCode($this->getConfig()->get($voteTextKey)); if (strlen($convertedText) <= self::limitText) { @@ -376,7 +377,7 @@ public function convert(string $key, int $index, int $progress, string $currentT $textsMapper->table = 'teams_joins'; $texts = $textsMapper->getTexts($index, self::batch); - foreach($texts as $text) { + foreach ($texts as $text) { $convertedText = $this->getView()->getHtmlFromBBCode($text['text']); if (strlen($convertedText) <= self::limitLongText) { @@ -396,7 +397,7 @@ public function convert(string $key, int $index, int $progress, string $currentT // table: users, column: signature, datatype: VARCHAR(255) $signatures = $userMapper->getSignatures($index, self::batch); - foreach($signatures as $signature) { + foreach ($signatures as $signature) { $convertedSignature = $this->getView()->getHtmlFromBBCode($signature['signature']); if (strlen($convertedSignature) <= 255) { @@ -417,7 +418,7 @@ public function convert(string $key, int $index, int $progress, string $currentT // table: users_dialog_reply, column: reply, datatype: TEXT $replies = $userMapper->getReplies($index, self::batch); - foreach($replies as $reply) { + foreach ($replies as $reply) { $convertedReply = $this->getView()->getHtmlFromBBCode($reply['reply']); if (strlen($convertedReply) <= self::limitText) { diff --git a/application/modules/bbcodeconvert/mappers/Texts.php b/application/modules/bbcodeconvert/mappers/Texts.php index 697e75d9e..3d4d98aca 100644 --- a/application/modules/bbcodeconvert/mappers/Texts.php +++ b/application/modules/bbcodeconvert/mappers/Texts.php @@ -1,4 +1,5 @@

getTrans('menuConvert') ?>

@@ -18,7 +22,7 @@ getTrans($moduleOrLayout['key']) ?>
-
+
diff --git a/application/modules/bbcodeconvert/views/admin/index/index.php b/application/modules/bbcodeconvert/views/admin/index/index.php index 0ea91cc4d..d73752edf 100644 --- a/application/modules/bbcodeconvert/views/admin/index/index.php +++ b/application/modules/bbcodeconvert/views/admin/index/index.php @@ -1,3 +1,7 @@ +

getTrans('menuOverview') ?> @@ -50,7 +54,9 @@ - get('installedSupportedModules') as $module) : ?> + get('installedSupportedModules') as $module) : ?> getDeleteCheckbox('check_modules', $module->getKey()) ?> getTrans($module->getKey()) ?> @@ -83,7 +89,9 @@ - get('installedSupportedLayouts') as $layout) : ?> + get('installedSupportedLayouts') as $layout) : ?> getDeleteCheckbox('check_layouts', $layout->getKey()) ?> getTrans($layout->getKey()) ?> diff --git a/application/modules/bbcodeconvert/views/admin/index/note.php b/application/modules/bbcodeconvert/views/admin/index/note.php index 89ed93236..218d1783a 100644 --- a/application/modules/bbcodeconvert/views/admin/index/note.php +++ b/application/modules/bbcodeconvert/views/admin/index/note.php @@ -1,3 +1,7 @@ +

getTrans('menuNote') ?> diff --git a/index.php b/index.php index 618e9827d..65146924c 100644 --- a/index.php +++ b/index.php @@ -31,7 +31,7 @@ $serverTimeZone = @date_default_timezone_get(); date_default_timezone_set('UTC'); -define('VERSION', '2.1.57'); +define('VERSION', '2.1.58'); define('SERVER_TIMEZONE', $serverTimeZone); define('DEFAULT_MODULE', 'page'); define('DEFAULT_LAYOUT', 'index');