Skip to content

Commit

Permalink
[BUGFIX] Deprecation: TYPO3_MODE and TYPO3_REQUESTTYPE constants
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed May 10, 2023
1 parent cd70034 commit 5be3c93
Showing 1 changed file with 57 additions and 59 deletions.
116 changes: 57 additions & 59 deletions ext_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,63 +67,61 @@

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_blog_domain_model_comment');

if (TYPO3_MODE === 'BE') {
// Main Blog
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
'blog',
'',
'after:web',
null,
[
'labels' => 'LLL:EXT:blog/Resources/Private/Language/locallang_mod_blog.xlf',
'name' => 'blog',
'iconIdentifier' => 'module-blog',
]
);
// Module Blog > Posts
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Blog',
'blog',
'blog_posts',
'',
[
\T3G\AgencyPack\Blog\Controller\BackendController::class => 'posts',
],
[
'labels' => 'LLL:EXT:blog/Resources/Private/Language/locallang_mod_blog_posts.xlf',
'icon' => 'EXT:blog/Resources/Public/Icons/module-blog-posts.svg',
'access' => 'user,group',
]
);
// Module Blog > Comments
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Blog',
'blog',
'blog_comments',
'',
[
\T3G\AgencyPack\Blog\Controller\BackendController::class => 'comments, updateCommentStatus',
],
[
'labels' => 'LLL:EXT:blog/Resources/Private/Language/locallang_mod_blog_comments.xlf',
'icon' => 'EXT:blog/Resources/Public/Icons/module-blog-comments.svg',
'access' => 'user,group',
]
);
// Module Blog > Setup
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Blog',
'blog',
'blog_setup',
'',
[
\T3G\AgencyPack\Blog\Controller\BackendController::class => 'setupWizard, createBlog',
],
[
'labels' => 'LLL:EXT:blog/Resources/Private/Language/locallang_mod_blog_setup.xlf',
'icon' => 'EXT:blog/Resources/Public/Icons/module-blog-setup.svg',
'access' => 'admin',
]
);
}
// Main Blog
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
'blog',
'',
'after:web',
null,
[
'labels' => 'LLL:EXT:blog/Resources/Private/Language/locallang_mod_blog.xlf',
'name' => 'blog',
'iconIdentifier' => 'module-blog',
]
);
// Module Blog > Posts
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Blog',
'blog',
'blog_posts',
'',
[
\T3G\AgencyPack\Blog\Controller\BackendController::class => 'posts',
],
[
'labels' => 'LLL:EXT:blog/Resources/Private/Language/locallang_mod_blog_posts.xlf',
'icon' => 'EXT:blog/Resources/Public/Icons/module-blog-posts.svg',
'access' => 'user,group',
]
);
// Module Blog > Comments
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Blog',
'blog',
'blog_comments',
'',
[
\T3G\AgencyPack\Blog\Controller\BackendController::class => 'comments, updateCommentStatus',
],
[
'labels' => 'LLL:EXT:blog/Resources/Private/Language/locallang_mod_blog_comments.xlf',
'icon' => 'EXT:blog/Resources/Public/Icons/module-blog-comments.svg',
'access' => 'user,group',
]
);
// Module Blog > Setup
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Blog',
'blog',
'blog_setup',
'',
[
\T3G\AgencyPack\Blog\Controller\BackendController::class => 'setupWizard, createBlog',
],
[
'labels' => 'LLL:EXT:blog/Resources/Private/Language/locallang_mod_blog_setup.xlf',
'icon' => 'EXT:blog/Resources/Public/Icons/module-blog-setup.svg',
'access' => 'admin',
]
);
});

0 comments on commit 5be3c93

Please sign in to comment.